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
JS
Helper II
Helper II

Quarter calculation help

Hi All.   I want to create a calcuation that will calculate the entire quater even though I have only selected a single month selection.

 

For example - I have selected May in my filter, the calculation will calculate the total sum of of Q2 (Apr, May & June). Is there anyway I can get this calculation out? Thanks. 

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @JS,

 

Have you worked it out? If so, would you please mark the helpful reply as an answer or kindly share your solution so that it can benefit more users? If you still have any question, please feel free to ask.

 

Thanks,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @JS,

 

Suppose there existing a Quarter column in source table. Now, you need a date table which contains one continual date column, and a Month column and a Quarter column. Don't need to create relationship between these two tables.

 

Add Month column from date table into slicer. Create a measure as below:

Sum per quarter =
CALCULATE (
    SUM ( SourceTable[Amount] ),
    FILTER ( ALL ( SourceTable ), SourceTable[Quarter] = LASTNONBLANK ( DateTable[Quarter], 1 ) )
)

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

If, in your calendar month table you have a Quarter column and this specified, then you could do something like:

 

Measure = CALCULATE(SUM([Column]),ALLEXCEPT(Table,Table[Quarter]))

This would ignore all context except Quarter. I think that will get you what you want but I don't have your data.



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...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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