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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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