Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cristianml
Post Prodigy
Post Prodigy

QTD

Hi,

I have an issue trying to calculate a column. I need "QTD" text in QTD column. The Logic is to allocate "QTD" in the current Fiscal quarter that in this case is Q2 for those 3 months.

cristianml_1-1649469884409.png

 

I tried to use above Variables but they did not work. Any ideas ?

 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Typically, QTD is a measure (not a calculated column formula).  Please describe your question and show the expected result.  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Typically, QTD is a measure (not a calculated column formula).  Please describe your question and show the expected result.  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur ,

 

I solvd by creating a column in "Actuals" table :

Current Q = CALCULATE(MAX(Actuals[Quarter]),'Actuals'[YTD]="YTD")

cristianml_0-1649512345817.png

 

Then the following column in Calendar table:

 

QTD =
VAR _1 = MAX('Actuals'[Date])>='Calendar'[Date]
VAR _2 = MAX(Actuals[Fiscal Year])='Calendar'[Fiscal Year]
VAR _3 = MAX(Actuals[Current Q])
RETURN
IF(AND(_1=TRUE(),_2=TRUE()) && _3='Calendar'[Quarter],"QTD",BLANK())

 

cristianml_1-1649512476607.png

 

Regards.

Glad to see that you have solved your own question.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.