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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I have 3 columns of Data (Top 20 customers for 3 years). I would like to sort the table so it starts with the largest customer in the most recent year. Right now it seems like the 20 custoemrs are just presented randomly.
Thanks in advance
Michael
Solved! Go to Solution.
Currently, we can not sort your table by using two different column. To work around this issue, you could create another column.
Sample data
And then create a table bu using the DAX below.
Table =
ADDCOLUMNS (
TOPN ( 20, Table1, Table1[Amount], DESC ),
"rank", RANKX ( Table1, Table1[Year] * 10000 + Table1[Amount] / 10000,, DESC )
)
Regards,
Charlie Liao
Just click on the column header and it will sort automatically
Kind regards
Yes. That will work for the total column for the 3 years, but the total coulm is hidden. I would like to sort on the most recent year - not the total. Nothing happens when clicking on one of the coumns.
Currently, we can not sort your table by using two different column. To work around this issue, you could create another column.
Sample data
And then create a table bu using the DAX below.
Table =
ADDCOLUMNS (
TOPN ( 20, Table1, Table1[Amount], DESC ),
"rank", RANKX ( Table1, Table1[Year] * 10000 + Table1[Amount] / 10000,, DESC )
)
Regards,
Charlie Liao
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 54 | |
| 41 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 106 | |
| 99 | |
| 38 | |
| 29 | |
| 28 |