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
Anonymous
Not applicable

Measure showing wrong sum

Hello Community,

 

I created a measure to calculate the sum of total limit multplied by the count of batch numbers

Total Limit x Count of Batch Number =
SUM([Limite totale]) * COUNT('V_GPAI_PertesJus_Analyse'[Nombre de batch])
 
When I select one number it shows me the right value ( For example below 240, 350) 
malekzouaridk_0-1657022323564.pngmalekzouaridk_1-1657022384069.png

But when I select both, normally it had to show me 590, unfortenatly it shows me 1180

 

malekzouaridk_2-1657022448163.png

 

Do you know How can I solve this problem ?

 

Thanks

 

 

1 ACCEPTED SOLUTION
rodrigosan
Resolver III
Resolver III

Hi @Anonymous 
did you check that you do not have a number of repeated batches.
If this is your case, I suggest using DISTINCTCOUNT instead of COUNT.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

It works 🙂 thanks @rodrigosan 

Great.
Very honored to be able to contribute.
🙏🙏

rodrigosan
Resolver III
Resolver III

Hi @Anonymous 
did you check that you do not have a number of repeated batches.
If this is your case, I suggest using DISTINCTCOUNT instead of COUNT.

rodrigosan
Resolver III
Resolver III

Hi @Anonymous 
did you check that you do not have a number of repeated batches.
If this is your case, I suggest using DISTINCTCOUNT instead of COUNT.

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.