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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.