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
Anonymous
Not applicable

Largest value in fiscal quarter

Hi,

 

I have a set of data by month and a calendar table that defines the fiscal month/quarter/year.  Our fiscal year starts in November.

 

I need to select the value representing the last value in the fiscal quarter. 

 

For example:

(Q1) Nov = 3

(Q1) Dec = 5

(Q1) Jan = 2

(Q2) Feb = 33

(Q2) Mar = 34

(Q2) Apr = 21

...

...

Expecting result for Q1 = 2; Q2 = 21

 

Any suggestion on how should I write my DAX formula?

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

To create a measure as below.

 

Measure 3 = var maxd = CALCULATE(MAX('Table1'[Date]),ALLEXCEPT(Table1,Table1[Now FiscalQuarterNumber]))
return
IF(MAX('Table1'[Date])=maxd,SUM(Table1[Value]),BLANK())

23.PNG

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

To create a measure as below.

 

Measure 3 = var maxd = CALCULATE(MAX('Table1'[Date]),ALLEXCEPT(Table1,Table1[Now FiscalQuarterNumber]))
return
IF(MAX('Table1'[Date])=maxd,SUM(Table1[Value]),BLANK())

23.PNG

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Thank you - I used a slight variation of the formula from https://community.powerbi.com/t5/Desktop/Conditional-measure-for-last-month-in-quarter/m-p/452534/hi...

 

For reference, I used:

Measure = calculate(

max(DimData[Value]), 

    filter(

        ALLEXCEPT(DimData, DimData[FisQtrYr]), 

        DimData[MonthDate] = MAX(DimData[MonthDate])

        ), 

    filter(DimData, [Level 2] = "Volumes")

    )

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.