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
Sarathg
Regular Visitor

How to know MAX CPM value

Hi Guys,
I have 50 states and there are 40 spend & CPM records for each and every state. so i add those spend & CPM for every state now i need MAX CPM. I try to calculate with different functions but the result is like the below screenshot.
Can anyone help me with this?WhatsApp Image 2022-12-12 at 5.54.19 PM.jpeg

3 REPLIES 3
Arul
Super User
Super User

@Sarathg,

Is this your expectation? I have taken sample from the screenshot attached and worked based on that.

MAX CPM = 
CALCULATE(MAX('CPM Table'[CPM]),ALL('CPM Table'))

 

Arul_0-1670849833081.png

Thanks,

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Is there any other way to solve it????

Hi Arul,
I have done that also but i am not getting the answer that you got because i have multiple states in single state like i have 40 Alabama states i did add spend and cpm to get only one state after that i did right the same DAX that you given. Can you please look below screenshot once. Thank you.
WhatsApp Image 2022-12-12 at 8.09.22 PM.jpeg

Helpful resources

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.