cancel
Showing results 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

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.

1 ACCEPTED SOLUTION
Super User

% 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.

3 REPLIES 3
Anonymous
Not applicable

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

Super User

% 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.

Super User

Hi @Anonymous

It's a total issue and very common.

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.