The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
79 | |
72 | |
48 | |
41 |
User | Count |
---|---|
138 | |
108 | |
69 | |
64 | |
57 |