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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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