Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi,
I have a table containing three columns: Subject, Rank and DisplayIndex. I want to display only the Subject and Rank columns, either in a table or a multi-row card, but I need data to be sorted by the DisplayIndex column.
I tried using the "Sort by Column" button: I selected the visual, then I selected the Rank field in the Fields pane, and then I checked the DisplayIndex field in the "Sort by Column" popup list. However, the table and the multi-row card don't seem to honor the "Sort by column" setting.
Is there something I am doing wrong here or these visuals do not support the "Sort by Column" feature?
As a note, I know that I can add the DisplayIndex column to the table/multi-row card and then easily sort by it, but the DisplayIndex column should not be visible at all and I dit not find a way around this.
Solved! Go to Solution.
@DanielV - You can set the Sort by Column property of a column. Go to the Modelling tab in the ribbon, select a column from the Fields pane on the right, click Sort by Column and select the associated column:
Hope this helps,
Nathan
Hi @DanielV ,
Based on my test using the sort by column option, that should work. Please select your subject column and make it sorted by displayindex column as the picture below.
I've managed to make it work.
The problem was that the Value summarization was set to Sum by default. Once I set it to "Don't summarize", the sort behaved as expected.
Here's a demo pbix (download). It has the Value summarization set to Sum.
Thank you!
Hi @DanielV ,
Based on my test using the sort by column option, that should work. Please select your subject column and make it sorted by displayindex column as the picture below.
I've managed to make it work.
The problem was that the Value summarization was set to Sum by default. Once I set it to "Don't summarize", the sort behaved as expected.
Here's a demo pbix (download). It has the Value summarization set to Sum.
Thank you!
@DanielV - You can set the Sort by Column property of a column. Go to the Modelling tab in the ribbon, select a column from the Fields pane on the right, click Sort by Column and select the associated column:
Hope this helps,
Nathan
@AnonymousThank you for your replay!
I have tried exactly what you suggested, with no results, unfortunately.
I have seen the sorted months example all over the internet but it doesn't work in my setup. It's true that I am not sorting a string column but a numeric one, and I am not working with a chart visual but with a table or multi-row card visual. Still, I haven't found any indication of limitation(s) of the "Sort by Column" feature that could explain why I can't make this work. So I must be doing something wrong.
Needless to say, any suggestion would be highly appreciated, being in the form of a solution or a workaround.
Thank you in advance!
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
91 | |
84 | |
76 | |
65 |
User | Count |
---|---|
145 | |
109 | |
109 | |
102 | |
96 |