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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Running Total for Last Quarter by fiscal week

Hi, 

I am calculating the running total based on fiscal calendar, calculated by fiscal week. Can someone help explain why my DAX is not returning the cumulative numbers, instead its showing the billings for last quarter?

My DAX formula is as below:

 

Total Billings LQ running total = 
CALCULATE(
	[Billings LQ],
	FILTER(ALLSELECTED(Dates[FW in Year]),
    Dates[FW in Year]>= MAX(Dates[FW in Year])
))

 

Quick screenshot for the sample pbix:

Running_Total.png

Sample pbix file also attached: Running Total. Appreciate all the help! 

Thanks,
Dennis

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

Your Filter( ) expression is not removing all the filters put in place by your table visual.  For example is you only had the FW in Year column and your measure, you should see your expected behavior.  Consider using ALLSELECTED(YourTable) in your Calculate too, but you may need more targeted filter removal if that doesn't work.

 

If this works for you, please mark it as solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Hi @mahoneypat

Can you please show me your solution in the pbix file that I attached in the original post? I pulled in FW in Year column in the table and still did not work. Change the calculation to ALLSELECTED(Date Table) did not work either and it returned null values for all weeks. 

Running_Total_Test.png

Thanks,
Dennis 

@Anonymous , please find the attached file after the signature. I have done a few changes to the calendar to create Rank, Qtr start Date etc. And added new columns to your visual

 

Let me know if this solves your purpose.

 

Inline with my videos

https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-YTD-LYTD-Week-Over-Week/m-p/1051626#M184
https://www.youtube.com/watch?v=7Jc3D4iaTqs

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak your solution works perfectly! Appreciate your help! 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors
Top Kudoed Authors