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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

combining measures into one?

I have 7 measures spread over 7 columns and I am aiming to merge them into one…

 

By using local variables (VAR) and ISINSCOPE, I should be able to display the same results, right?

 

The measures I have are:

 

TotalPerCustomer =

CALCULATE ( SUM ( Sheet1[NSR] ), ALLSELECTED (), VALUES ( Sheet1[CUST] ), Sheet1[NSR]>0 )

 

 

MaxBUPerCustomer =

CALCULATE ( MAX ( Sheet1[NSR] ), ALLSELECTED (), VALUES ( Sheet1[CUST] ) )

 

 

MDMCustomer =

[TotalPerCustomer] / [MaxBUPerCustomer]

 

 

TotalPerUP =

CALCULATE ( SUM ( Sheet1[NSR] ), ALLSELECTED (), VALUES ( Sheet1[UP] ) )

 

 

SubTotalBU =

CALCULATE ( SUM ( Sheet1[NSR] ), ALLEXCEPT ( Sheet1, Sheet1[UP], Sheet1[BU] ) )

 

 

MaxBUPerUP =

MAXX ( ALLEXCEPT ( Sheet1, Sheet1[UP] ), [SubTotalBU] )

 

 

MDMUp = [TotalPerUP]/[MaxBUPerUP]

 

 

 

 

 

1 REPLY 1
Anonymous
Not applicable

Yes, You should be able to do that. Are you facing any issue?

 

Thanks!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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