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
Sof
Frequent Visitor

Calculate MAX over measure per date

Hello,

 

I have a problem I hope you can help me with. I have a measure calculating an amount per hour of each day of each month of each year. Now I want to calculate the max of this measure over a day. I have found solutions to solve this for a column, but not for a measure. Can someone help me with this? I am new to power BI, so I don't understand the DAX language completely yet.

 

Thanks!

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Sof,

 

Maybe you could try this formula with some changes: (the blue part could be your current measure.)

Measure =
SELECTCOLUMNS (
    TOPN (
        1,
        SUMMARIZE ( Sales, 'Sales'[Hour], "Amount", SUM ( Sales[Quantity] ) )
    ),
    "FinalAmount", [Amount]
)

Then your report could be like this:

Year   Month  Day  Measure

 

Please have a try. If you need more help, please post a sample here in a text mode. The PBIX file would be great if possible.

 

Best Regards!

Dale

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

View solution in original post

1 REPLY 1
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Sof,

 

Maybe you could try this formula with some changes: (the blue part could be your current measure.)

Measure =
SELECTCOLUMNS (
    TOPN (
        1,
        SUMMARIZE ( Sales, 'Sales'[Hour], "Amount", SUM ( Sales[Quantity] ) )
    ),
    "FinalAmount", [Amount]
)

Then your report could be like this:

Year   Month  Day  Measure

 

Please have a try. If you need more help, please post a sample here in a text mode. The PBIX file would be great if possible.

 

Best Regards!

Dale

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

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.

Users online (1,906)