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
Mikhail_Lourie
Frequent Visitor

Bug in %GT calculation

Hi all! 
I've created bins to distribute the "Value". I created a matrix where each value is the sum of "Values" that fall into the exact bin.

Mikhail_Lourie_1-1595162279986.png

 

If I select  "present "Values" as a percent of grand total", I get negative values of percentages and negative value of Total in %, I expect to get abs value in % when I chose % of GT

 
 
 

VpH4Er4Rdm.png

 

Is it a bug?

Is there is another solution to present % of GT in absolute values?

 

 

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

Is that the same data in both tables? The numbers don't seem to match.

% GT is not absolute, it should just take the value and divide by grand total value (23,218.49 in your top chart).

If you want a different calculation, please explain what the calculation should be and we can help you create custom measure. I don't really know how you would accurately create a percent when negative numbers are involved, do you need to update the total to be an absolute sum?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @Mikhail_Lourie ,

 

As mentioned by AllisonKennedy, it just take the value divide the grand total. If you want to get the absolute value, just create a new measure for it and use ABS function:https://docs.microsoft.com/en-us/dax/abs-function-dax

 

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

 

Best Regards,

Dedmon Dai

@v-deddai1-msft , @AllisonKennedy, thank you for your replies! 

 

I added ABS and it worked!

But never the less, I think it is wrong from the mathematical point of view to get NEGATIVE values of a percent.  

 

AllisonKennedy
Super User
Super User

Is that the same data in both tables? The numbers don't seem to match.

% GT is not absolute, it should just take the value and divide by grand total value (23,218.49 in your top chart).

If you want a different calculation, please explain what the calculation should be and we can help you create custom measure. I don't really know how you would accurately create a percent when negative numbers are involved, do you need to update the total to be an absolute sum?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.