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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.