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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

% Total of a measure not calculating correctly

Dear Community

 

In the below table, I have created a measure "% of available revenue" which divides "revenue in AoL" by "Available Revenue".

 

My issue that I am trying to resolve is that I wanted the total of the "% of Available Revenue" column to be 29% instead of 22% ($51,924,979/$175,498,037). The rows are filtered based on the supplier and the fiscal year.

 

How do I accomplish this? Thank you very much for your help.

 

AndrewPanchal_0-1641854161884.png

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Picture2.png

 

% of Available Revenue: =
DIVIDE (
SUMX ( VALUES ( Data[Area of Law] ), [Revenue in AoL:] ),
SUMX ( VALUES ( Data[Area of Law] ), [Available Revenue:] )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here and Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thank you very much for your help everyone this has been resolved.

Jihwan_Kim
Super User
Super User

Picture2.png

 

% of Available Revenue: =
DIVIDE (
SUMX ( VALUES ( Data[Area of Law] ), [Revenue in AoL:] ),
SUMX ( VALUES ( Data[Area of Law] ), [Available Revenue:] )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here and Go to My LinkedIn Page


VahidDM
Super User
Super User

Hi @Anonymous 

 

It's a total issue and very common.

 

Check these links:

https://www.sqlbi.com/articles/obtaining-accurate-totals-in-dax/

https://www.sqlbi.com/articles/distinguishing-hasonevalue-from-isinscope/

https://www.sqlbi.com/articles/summing-values-for-the-total/

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors