We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I have taken this table from Excel & cannot use 'transpose' as this is the layout required - How do I edit this query so that the '%' rows are in percentage format & the Jul-21 list is in this order:
Revenue, Gross Profit, GP%, Overheads, Operating Profit, OP%, EBITDA, EBITDA %, EBITDA adj, EBITDA adj %?
Thanks
Solved! Go to Solution.
Here's a solution:
Here's the end result. It works, but all the values are of the text data type. But maybe that doesn't matter here because we wouldn't want to sum decimal numbers with percentages anyway.
I hope this helps. If it does, please mark it as the solution.
@Anonymous
1. To sort the column, you can add an index then sort using conditional column as @Anonymous suggested.
2. In order to change some value to %, you need to create a measure for each column, just replace the referred column to the corresponding column name. For example:
Anual month measure = IF(RIGHT(MAX([Type]),1)="%",FORMAT(MAX([Anual Month]),"Percent"),MAX([Anual Month]))
Anual Year measure = IF(RIGHT(MAX([Type]),1)="%",FORMAT(MAX([Anual Year]),"Percent"),MAX([Anual Year]))
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous @Anonymous Thats perfect, thank you very much for your help!
@Anonymous I don't suppose you know what to add to the measure so that the percentage rows show to the nearest percent (0 d.p.)? Formatting to 0 d.p. in 'Measure tools' only applies to the non-percentage values. Thanks
@Anonymous
1. To sort the column, you can add an index then sort using conditional column as @Anonymous suggested.
2. In order to change some value to %, you need to create a measure for each column, just replace the referred column to the corresponding column name. For example:
Anual month measure = IF(RIGHT(MAX([Type]),1)="%",FORMAT(MAX([Anual Month]),"Percent"),MAX([Anual Month]))
Anual Year measure = IF(RIGHT(MAX([Type]),1)="%",FORMAT(MAX([Anual Year]),"Percent"),MAX([Anual Year]))
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous I like this. It preserves the data type and only relies on a % suffix. 👍
Here's a solution:
Here's the end result. It works, but all the values are of the text data type. But maybe that doesn't matter here because we wouldn't want to sum decimal numbers with percentages anyway.
I hope this helps. If it does, please mark it as the solution.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 7 | |
| 7 | |
| 6 |