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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
po
Post Prodigy
Post Prodigy

conditional sum and sum of calculated measure

Hi,

 

Have a calculated measure to determine if target met which gives value of 0, -1 or or 1 depending on if target met.

 

Wish now to sum these where value = -1 

 

Have below

 

sumx(filter('Calculated Measures table',[target_met_flag]=-1),'Calculated Measures table'[target_met_flag])
 
However, isn't summing these correctly.
 
Even a sum(Calculated Measures table'[target_met_flag]) is not showing as expected
 
Table has region, week and trying to display the summed by values by region and week in matrix but correct values not being shown correctly.
 
 
 

 

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @po ,

 

Could you try to use Var return to work on it? If it doesn't solve your problem,  kindly share your sample data and excepted result to me. Please upload your files to One Drive and share the link here.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Thanks - will check it out.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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