cancel
Showing results for
Did you mean:

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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.

MVP

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.

Announcements

#### Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

#### Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

#### The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors