Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone,
I’m currently working on ranking visuals for the recently concluded 2025 FIFA World Cup, which ended last Sunday with Chelsea FC (a UK football club) lifting the trophy.
(Details of the Table with the dataset: Table Name is TeamStats.
The are 11 columns in the TeamStats Table and the Column Names in the table are:
Group Type | Team | Country | MP | Won | Draw | Lost | GA | GF | GD | Points
Here’s what I’m trying to achieve:
Only the 1st and 2nd placed teams in each group should be considered.
Some of you may recognise the dataset from the tournament. I've shared visuals below for your review. However, the conditional formatting I applied doesn't seem to work correctly for some of the groups — the top two teams by points (and subsequent tie-breakers) are not consistently highlighted in green as intended.
Measures Created: ( Details below)
I’ve created three measures to support this ranking logic. These were then used in the conditional formatting section:
Format: By Field Value
Based on: HighlightTop2 and OK
The current results are reflected in the visuals I’ve shared - see below
Could you kindly take a look and advise on what might be going wrong?
Thanks in advance for your support!
VISUALS:
1st measure: RankKey
2nd Measure: RANK MEASURE
3rd Measure: HighlightTop2
Solved! Go to Solution.
Hi @atin,
I believe your alomost correct, you can try with below modified DAX.
I would suggest to multiply points by higher factor(10,000 instead of 1000) to reduce chances of key collisions.
1st measure(Modified): RankKey
2nd Measure(modified): RANK MEASURE
3rd Measure(modified): HighlightTop2
Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues.
Hi @atin ,
Thank you for reaching out to the Microsoft Fabric Community Forum.
Your method of ranking teams within each group based on Points, Goal Difference (GD), and Goals For (GF) follows standard tournament rules and makes perfect sense.
After reviewing your measures and visuals, it looks like the issue with conditional formatting is mainly due to:
Also thank you @ajaybabuinturi for the response shared, which accurately addresses these points. In particular:
These updates should help you highlight the top two teams correctly in each group.
Hope this helps. Please reach out for further assistance.
Thank you.
Hi @atin ,
Thank you for reaching out to the Microsoft Fabric Community Forum.
Your method of ranking teams within each group based on Points, Goal Difference (GD), and Goals For (GF) follows standard tournament rules and makes perfect sense.
After reviewing your measures and visuals, it looks like the issue with conditional formatting is mainly due to:
Also thank you @ajaybabuinturi for the response shared, which accurately addresses these points. In particular:
These updates should help you highlight the top two teams correctly in each group.
Hope this helps. Please reach out for further assistance.
Thank you.
Hi @atin,
I believe your alomost correct, you can try with below modified DAX.
I would suggest to multiply points by higher factor(10,000 instead of 1000) to reduce chances of key collisions.
1st measure(Modified): RankKey
2nd Measure(modified): RANK MEASURE
3rd Measure(modified): HighlightTop2
Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues.
Hi,
Share the download link of the PBI file and show the expected result there clearly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 42 | |
| 41 | |
| 23 |
| User | Count |
|---|---|
| 171 | |
| 136 | |
| 119 | |
| 79 | |
| 54 |