Forum Discussion

paddysellsfruit's avatar
paddysellsfruit
Frequent Visitor
4 years ago
Solved

Calculate daily maximums across filtered data

Hi there, Problem We have slicers to filter by Date hierarchy, Type/Item, Region, Shop, and Seller. We need to be able to display the total sales as well as daily maximum sales for the chosen filt...
  • johnt75's avatar
    4 years ago

    If you already have your Total Sales measure then you can calculate the maximum daily amount with

    Daily max sales =
    MAXX ( VALUES ( 'Date'[Date] ), [Total Sales] )
    

    Should work at any level of the date hierarchy.

    For future reference, when people want to share PBIX files they tend to use a file sharing site like Dropbox or We Transfer, or else share directly from something like Google Drive or OneDrive.