March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have hockey data and am trying to pull out the champion from a given year. To be the champion, a team must accumulate 4 wins in the final round. I have written a calculated column for this:
Finalists = IF('Database (2)'[Round] = "Final" && 'Database (2)'[Win] = 1, "win", "loss")
Solved! Go to Solution.
I believe a switch statement would be able to provide the results you are looking for. Something like the below:
Column 2 = SWITCH( TRUE(), 'Database (2) [Count of Champions] = 4, "True", 'Database (2) [Count of Champions] < 4, "False" )
Basically creating a condition where if the count of champions column (or whatever the updated name is) is equal to 4 then it will display "True" or "Win" and a conditon where it is less than 4 to display "False" or "Loss".
You could then use a distinct count to count the number of "Wins" or "Losses" in a card visual.
I believe a switch statement would be able to provide the results you are looking for. Something like the below:
Column 2 = SWITCH( TRUE(), 'Database (2) [Count of Champions] = 4, "True", 'Database (2) [Count of Champions] < 4, "False" )
Basically creating a condition where if the count of champions column (or whatever the updated name is) is equal to 4 then it will display "True" or "Win" and a conditon where it is less than 4 to display "False" or "Loss".
You could then use a distinct count to count the number of "Wins" or "Losses" in a card visual.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
90 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |