cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Frequent Visitor

## How do I calculate an extra colomn of Percentage of Grand total with dax

Hello guys,

In the third colomn you can see the  % of GT, this is done by "show value as".

I want this in a measure so I could calculate some formulas.

The column "Total90%FilterCalculate" is created with this measure:

Total90%FilterCalculate = CALCULATE(DISTINCTCOUNT(MKA[Versies.Id]), FILTER(MKA, MKA[VullingTotaalPerc]="90 %"))

How do I create this measure?

Thnx!

1 ACCEPTED SOLUTION
Super User

Hi

try like:
Pct =
VAR _Total=
CALCULATE(
DISTINCTCOUNT(MKA[Versies.Id]),
ALL(MKA)
)
RETURN
FORMAT(DIVIDE([Total90%FilterCalculate], _Total), "0.0%")

@kldefens

3 REPLIES 3
Super User

Hi

try like:
Pct =
VAR _Total=
CALCULATE(
DISTINCTCOUNT(MKA[Versies.Id]),
ALL(MKA)
)
RETURN
FORMAT(DIVIDE([Total90%FilterCalculate], _Total), "0.0%")

@kldefens

Resolver III
Frequent Visitor

I've tried to do the same thing but I get an error. I don't know how to use the measure whenever I use distinccount + filter.

Announcements

#### Fabric certifications survey

Certification feedback opportunity for the community.

#### Power BI Monthly Update - April 2024

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

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors