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

Incorrect totals in Power BI

Hi All,

I have come across a scenario where the total's are showing  incorrectly , it does not show the sum of values. 

Data is as below:

Capture1.JPG

 

The measure field I am using is 

 

Average  # of Business Days = sum(Query2[Derived # of Business Days])/DISTINCTCOUNT(Query2[Submission Number])

 

But the total is showing as different , 3.88+20.23+14.65=38.76 but I get 36.70 as the result.

Can someone please let me know the issue and how to fix this.

 

Thank you

Poojitha

4 REPLIES 4
sturlaws
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

I am pretty sure that this happens because [submission number] is not unique. You can verify this by creating two measures:

 

[distinct submission number] = distinctcount([submission number])
[sum business days] = sum([Derived # of Business Days])

 

and add these two measures to your table. Then you will see which numbers goes into calculating your average value at each row and at the total

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

 

[Derived # of Business Days]

 

Anonymous
Not applicable

Hi @sturlaws 

 

Yes, the submission numbers are not unique, but is there a way to have the totals match up. Below is the data with the two new meausures as suggested.  only the average measure is mismatching.

Capture1.JPG

Hi @Anonymous ,

 

Refer to this, almost the same thread as your:

https://community.powerbi.com/t5/Desktop/Sum-of-values-in-a-measure-with-divide-measure/m-p/296768#M130947 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

yes, you can use sumx:

new measure =
SUMX (
    SUMMARIZE ( Query2, [Review category], [Pre-review/IRB review] ),
    [Average # of business days]
)

 

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.

Top Solution Authors
Top Kudoed Authors