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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
AnonymeC
Regular Visitor

DAX - Calculation of sum for current Fiscal Year

Hello,

 

I am trying to calculate the weight of the sales per quarter and half fiscal year (considering the whole FY). For that I want to divide the sales of the time period by the total sales of the FY.

 

To calculate the sales of the time period I just do :

=sum( 'Sales consolidated'[Sales $])

and then use my dates table in the pivot table to show the half and quarter.

 

The issue is with the total sales of the FY. After research I tried this formula :

=CALCULATE( sum( 'Sales consolidated'[Sales $]), FILTER( Dates, Dates[FY] = "FY23"))

 

I believed it worked but it doesn't, when I'm using it in my pivot I don't have the value of the whole fiscal year when I'm looking at quarter or half level (I have the correct value for the total though). I woul like to "freeze" this total value so I can use it when looking at quarter/half level to calculate the weight.

 

Hope it is clear, thanks a lot in advance.

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@AnonymeC Try:

Measure = CALCULATE( sum( 'Sales consolidated'[Sales $]), FILTER( ALL(Dates), Dates[FY] = "FY23"))


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
AnonymeC
Regular Visitor

To give you a better idea the pivot table should look like this :

 Column labels        
 H1  H2  total (=Full FY)  
          
Row labelsSales $Total SalesWeightSales $Total SalesWeightSales $Total SalesWeight
Category A120002000060%80002000040%2000020000100%
Category B250005000050%250005000050%5000050000100%
Greg_Deckler
Community Champion
Community Champion

@AnonymeC Try:

Measure = CALCULATE( sum( 'Sales consolidated'[Sales $]), FILTER( ALL(Dates), Dates[FY] = "FY23"))


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler It worked, thanks a lot!!

Have a nice day

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.