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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
bassmaninaus_PB
Frequent Visitor

Dax measure to bring back the max volume date

Hi,

I have a card displaying the maximum daily volume over a 12 month period.

Measure is this: Max Daily Volume = MAXX( VALUES(Dates[Date]), [Total Forecast Volume])

I'm trying to create a tooltip so when hovering over that card, a table displays with all the records of just that day that has the maximum volume.

The Card is correct with 13K on the maximum day and that lines up with the total of the tooltip, with 12,979 as the total. However it is showing all dates, I just want that maximum day to show. i.e the actual day with the maximum daily volume of 12,979 is 16th April 2024.

Any ideas greatly appreciated.

My thoughts are to create a measure that calculates that max volume day, returning 1 or 0 then using in the card filter, however need help!

 

bassmaninaus_PB_0-1692338604974.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@bassmaninaus_PB , Try like

 

calculate( MAXX( VALUES(Dates[Date]), [Total Forecast Volume]) , allselected())

 

 

or add 12 month filter

 

12 Month Avg = CALCULATE(MAXX( VALUES(Dates[Date]), [Total Forecast Volume])
,DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@bassmaninaus_PB , Try like

 

calculate( MAXX( VALUES(Dates[Date]), [Total Forecast Volume]) , allselected())

 

 

or add 12 month filter

 

12 Month Avg = CALCULATE(MAXX( VALUES(Dates[Date]), [Total Forecast Volume])
,DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.