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

Calculated Measures and CPMU calculations

Hi,

I am new here and to BI, and I am looking for some help.

 

I am trying to use a calculate measure to calculate a complaints per million units figure.

One of the values being used is pulled form an SQL report and the other is a calculated measure I have set up. How ever I can not see the calculated measure when using the DAX formula to create the CPMU calculation.

My question is can you use a calculated measure in another calculated measure or is this to complex?

If you can not how can I calculate one number to then be used in a further calculation.

 

The CPMU calculation I am using is 

CPMU = divide(sum(Complaints[Number Of Complinats]),divide(sum(calculated measure),1000000))

 

Any help appreciated.

 

Steve

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Please try :

CPMU = 
var divide_1 = divide(calculated measure,1000000)
return divide(sum(Complaints[Number Of Complinats]),divide_1)

 If you want to sum measure, use sumx instead of sum.

CPMU = 
var divide_1 = divide(SUMX ( VALUES ( Complaints[xxxx] ), [calculated_measure] ),1000000)
return divide(sum(Complaints[Number Of Complinats]),divide_1)

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Please try :

CPMU = 
var divide_1 = divide(calculated measure,1000000)
return divide(sum(Complaints[Number Of Complinats]),divide_1)

 If you want to sum measure, use sumx instead of sum.

CPMU = 
var divide_1 = divide(SUMX ( VALUES ( Complaints[xxxx] ), [calculated_measure] ),1000000)
return divide(sum(Complaints[Number Of Complinats]),divide_1)

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.