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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.