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,
I have a calculated column in Power BI report that represent time in the following format which is of text datatype.
Column1
4 hrs 20 mins
548 hrs 11 mins
2 hrs 04 mins
34 hrs 22 mins
60 hrs 40 mins
83 hrs 39 mins
I want to visualize it in a table visual in sorted order but sort by column doesn't work.
I want them in sorted order like this:
Column1
2 hrs 04 mins
4 hrs 20 mins
34 hrs 22 mins
60 hrs 40 mins
83 hrs 39 mins
548 hrs 11 mins
Is there any way I could sort this?
Thank you.
Are you using a Sort By column where you convert these to:
260
32891
124
2062
3640
5019
?
I am using sort by column in table visualization. And no the values are not getting converted.
This is the dax func I used to find the duration in hrs & mins.
Column =
INT(Query1[DurationInSecs]/ 3600) & " hrs " &
RIGHT("0" & INT((Query1[DurationInSecs] - INT(Query1[DurationInSecs] / 3600) * 3600) / 60), 2)& " mins"
@SR1,
Click on the column in your table, then sort it by DurationInSecs column. If you still get error message, please post the full error message.
Regards,
Lydia
This is the error I am getting when I try to sort by DurationInSecs column.
Thanks,
SR
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 |