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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.