Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Folks,
I am struggling to sort in order. please help.
Solved! Go to Solution.
Create one more switch column for sorting:
Hi , @PSan1979
It seems that field "DateDiff" is a calculated column or a measure?
Please sort column DateDiff in ascending order first.
Then select and sort the column "DaysBucket2" by column" DateDiff", the result will show as below.
Best Regards,
Community Support Team _ Eason
Hi , @PSan1979
It seems that field "DateDiff" is a calculated column or a measure?
Please sort column DateDiff in ascending order first.
Then select and sort the column "DaysBucket2" by column" DateDiff", the result will show as below.
Best Regards,
Community Support Team _ Eason
Or you can sort the bucket column based on SOrting COlumn which is created in my above post.
Go to Data tab (just above the relationship tab) --> select BucketRange column --> go to "Column tool" menu --> Sort by COlumn option --> and choose "Sorting Order" column which just created.
@PSan1979 , I the same ways create a sort column with sequence 1,2,3
2 #DaysBucket =
SWITCH (
TRUE (),
[DateDiff] <=1,1,
[DateDiff] >1 && [DateDiff] <= 30, 2,
[DateDiff] >30 && [DateDiff] <= 60, 3,
[DateDiff] >60 && [DateDiff] <= 120, 4,
[DateDiff] >120 && [DateDiff] <= 180, 4,
[DateDiff] >180 && [DateDiff] <= 240, 6,
[DateDiff] >240 && [DateDiff] <= 366, 7,
8
)
Or give space in names to sort in a particular order. In first give 6 space, 2nd one give 5 space
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
Create one more switch column for sorting:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |