cancel
Showing results for 
Search instead for 
Did you mean: 
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,

 

If I answered your question then mark my post as a solution and a kudo would be appreciated.

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
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.