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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors