Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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 April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
19 | |
13 | |
10 | |
9 | |
9 |