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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Soniar
Regular Visitor

Create a measure that sum higher level basing of the sum of the lower

I need to sum a value that is calculated at a lower level.

I created a measure that calculate a difference in sls by customer and the result is:

customer F06360= 0 

customer F23334 = 36,12

and this is the measure:

newcus LY difference = calculate(IF(ISBLANK(MAX('NEWCUS LY'[Cod. Movex ])),0,
if([SALES YTD]- SUMX('NEWCUS LY',[SALES LY])<0,0,[SALES YTD]- SUMX('NEWCUS LY',[SALES LY]))))
then in my matrix visual I aggregated these 2 values by salesman(FE21) but the result is 0 instead of 36,12

Soniar_0-1718877206265.png

any idea? Sales are correctly sum but not my measure

thanks

Sonia

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi, @Soniar 

You can provide pbix files without sensitive data for testing purposes.

Best Regards,
Yang

Community Support Team



I solved with 2 meausures i/o 1. thanks

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.