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

Frequent Visitor

## Measure für prozentualen Anteil

Hallo zusammen,

ich habe eine Tabelle die wiefolgt befüllt ist:

Ich möchte nun in der Spalte "Descript.Sur.Config. herausfinden, wie hoch die prozentuale Quote von einem bestimmten Wert in dieser Spalte (z.B. Repairable wear) ist.

Ich möchte also die Anzahl des Wertes "Repairable wear" durch die Gesamtanzahl der Vorgänge in der Spalte teilen.

Wie lautet die zugehörige DAX-Formel hierzu?

Vielen Dank für eure Hilfe.

Viele Grüße,

Florian

1 ACCEPTED SOLUTION
Community Support

Hi @Flo95 ,
Create a measure

``````Percentage =
VAR _total =
CALCULATE(
SUM('Table'[Order Quantiy]),
ALL('Table')
)
VAR _selectedValue =
CALCULATE(
SUM('Table'[Order Quantiy]),
FILTER(
'Table',
'Table'[Descript.Sur.Config] = "Repairable wear"
)
)
RETURN
_selectedValue/_total``````

Final output

Best regards,
Albert He

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

Community Support

Hi @Flo95 ,
Create a measure

``````Percentage =
VAR _total =
CALCULATE(
SUM('Table'[Order Quantiy]),
ALL('Table')
)
VAR _selectedValue =
CALCULATE(
SUM('Table'[Order Quantiy]),
FILTER(
'Table',
'Table'[Descript.Sur.Config] = "Repairable wear"
)
)
RETURN
_selectedValue/_total``````

Final output

Best regards,
Albert He

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

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.