cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
malekzouaridk
Helper III
Helper III

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 @malekzouaridk 
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
malekzouaridk
Helper III
Helper III

It works 🙂 thanks @rodrigosan 

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

rodrigosan
Resolver III
Resolver III

Hi @malekzouaridk 
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 @malekzouaridk 
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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors