Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
Hi i am trying to change the row order in a table. I created a measure using below formula and added to values but didnt work. Can anyone help?
ANSP (Cents) |
BDF (includes rebates) |
Customer NS |
Customer P&L - Gross Profit |
Gross Sales |
Off Invoice Sales |
Total Cost of Goods - MGT |
Trade Discounts |
Volume Sales |
Solved! Go to Solution.
I will give it a try with adding a column. Is there a way to do this without changing the source data, via measures?
@dokat , Create this as new column and mark it as a sort column of 'P&L'[P&L]
Rearrange Rows = switch(('P&L'[P&L]),"Volume Sales",1,"Gross Sales",2,"Trade Discounts",3,"Off Invoice Sales",4,"BDF(includes rebates)",5,"Customer NS",6,"ANSP(Cents)",7,"Total Cost of Goods-MGT",8,"Customer P&L - Gross Profit",9)
How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c
In actual table there are more rows that i shared on the sample data. In the query editor raw table there are total of 15 rows. If i just code the 9 it won't work.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
66 | |
65 | |
56 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
39 |