Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
RowNum = CALCULATE ( COUNT ( 'Table'[ID] ), FILTER ( ALLSELECTED ( 'Table' ), 'Table'[ID] <= MAX ( 'Table'[ID] ) ) )
Where can I add in sort by field in this equation?
Solved! Go to Solution.
Hi @olsen9 ,
I think [RowNum] should be a measure based on your calculation logic. As far as I know, Power BI doesn't support us to add a measure to sort the columns.
For reference:
Sort one column by another column in Power BI
Here I suggest you to create a Custom column in Power Query Editor and then use this function. If you sort a column by a calculated column which is calculated based on that column, Power BI will return a circule error.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @olsen9 ,
I think [RowNum] should be a measure based on your calculation logic. As far as I know, Power BI doesn't support us to add a measure to sort the columns.
For reference:
Sort one column by another column in Power BI
Here I suggest you to create a Custom column in Power Query Editor and then use this function. If you sort a column by a calculated column which is calculated based on that column, Power BI will return a circule error.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
55 | |
37 | |
31 |
User | Count |
---|---|
89 | |
62 | |
61 | |
49 | |
45 |