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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Himanshu_1306
Helper V
Helper V

Quarter Days data

Hi All,

 

I have a visual in my report where I'm showing data Q/Q like below.

 

Himanshu_1306_0-1676966699204.png

 

What bussiness wants is that I should show the exact same day's data for each quarter for example today is 21st Feb and 21st day of the quarter for me so each quarter in the visual should show data for the first 21 days only instead of showing the complete consolidated data for that quarter.

 

I have the fiscal day column in my dataset. How should I get this thing done?

 

I have a measure created as well which I'm showing against these quarters. the values is ARR.

so I want something like

 

DAX = calculate([ARR],fiscal_day_of_quarter <= Today()).

 

But this is not giving the correct info here.

 

Himanshu_1306_1-1676966839621.png

 

 

12 REPLIES 12
andhiii079845
Solution Sage
Solution Sage

You can Calculated before the current date like:

My Measure = 
VAR currentday = DAY(TODAY())
RETURN DAX = calculate([ARR],fiscal_day_of_quarter <= currentday) 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks for the response but the calculation will not solve the issue. For example tommorrow will be 1st of March and that will be 29th Day of my quarter but the variable will pick the day as 1 and the result will calculate the value based on the day = 1 for tommorrow. However it should be like 29th Day of the quarter.

Your problem is only to get for the 1st of March (if this day is today) the value (fiscal_day_of_quarter field) 29 from the Dimtable? Is this right? The both tables are in a relationship?
You can try like this as a example:

DimTable[Day] is your fiscal_day_of_quarter column in the DateTable. 

Fact is your second table. 

 

Measure = 
Var currentday = TODAY()
Var day = CALCULATE(VALUES(DimTable[Day]),FILTER(RELATEDTABLE('Fact'),'Fact'[Date]=currentday))

RETURN Day

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I tried the below DAX but its not working

 

Measure =
Var currentday = [Today]
Var day = CALCULATE(VALUES(D_DATE[FISCAL_DAY_OF_QUARTER]),FILTER(RELATEDTABLE(F_ACV),F_ACV[CLOSE_DATE]=currentday))

RETURN
CALCULATE([ACV],D_DATE[FISCAL_DAY_OF_QUARTER] = day)

WHY [TODAY] instead of TODAY() ?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I'm using date direct from my DB.

Please try my solution first. you also use today() in your first post.
What is [TODAY] ? a Column with one value? 
Than you can try something like Var currentday = calculate(VALUES([Today]))





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




The day number is coming correct using your measure but how to calculate the total fact amount i.e ACV here, DAX doesnt allow me to use calculate with the measure created.

 

Himanshu_1306_0-1677676371354.png

 

Himanshu_1306_1-1677676628332.png

 

Sorry, is to confusing for me. 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I'm using the below calculation for the time being to get the desired result. the issue with this DAX is I'll have to add the previous months days to the calculation like tommorow I'll replace 0 with 28 in my calculation.

 

Himanshu_1306_0-1677597171581.png

 

Himanshu_1306
Helper V
Helper V

I have created a Date table as well and now just want to know how to proceed on the request.

What DAX function to use??

 

Himanshu_1306_0-1676971758196.png

 

I want something like below where I can get values for 1st day of the quarter to the present day of the quarter.

 

How to get this through DAX so that it gets dymanic??

 

Himanshu_1306_0-1676984341120.png

 

@amitchandak @Greg_Deckler @FreemanZ any help here?

 

Instead of the hard coded value of "21" I want the current quarter day number there


Himanshu_1306_0-1676991837974.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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