Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hello, I would like to count the winrate % for each player. I have a table with 2 columns [player] and [won]. The player column is text and won is TRUE/FALSE.
Solved! Go to Solution.
WinRate =
VAR total = COUNTROWS('YourTable')
VAR won = CALCULATE(
COUNTROWS('YourTable'),
YourTable[won] = TRUE()
)
RETURN DIVIDE(won, total)
WinRate =
VAR total = COUNTROWS('YourTable')
VAR won = CALCULATE(
COUNTROWS('YourTable'),
YourTable[won] = TRUE()
)
RETURN DIVIDE(won, total)
Thank you very much!
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!