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
Hello,
I´ve the Table1, and I need to create a new calculated table "Final Table" ( only the name of the camp Prod), but with the top 1 for each Region:
Thanks.
Solved! Go to Solution.
@Alexo3627 , Ideally you should use Rank/TOP/index and a visual table.
but for calculated table try like
selectcolumns(filter(addcolumns(Table, "_Rank", Rankx(filter(Table, [Region] = earlier([region]) ), [Sales],,desc,dense) ),[_Rank] =1), [Product])
Index function: Top/Bottom Performer by name and value- https://youtu.be/HPhzzCwe10U
Hi,
Why do you want only 1 column in the Final Table. Wouldn't you also want to see the Product and Region?
@Alexo3627 , Ideally you should use Rank/TOP/index and a visual table.
but for calculated table try like
selectcolumns(filter(addcolumns(Table, "_Rank", Rankx(filter(Table, [Region] = earlier([region]) ), [Sales],,desc,dense) ),[_Rank] =1), [Product])
Index function: Top/Bottom Performer by name and value- https://youtu.be/HPhzzCwe10U
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |