The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I have a column with timestamp in HH:MM:SS format. I want to sort the visuals based on a condition that if Shift = Day, then sort timestamp from 6AM to 6PM, else if Shift = Night, then sort timestamp from 6PM to 6AM. I want to apply this sorting on a visual. I was able to achieve this via Power Query and sort the backend data but does not reflect on the visuals.
I need a sorting index column to sort the LocalTime column on. Can someone please guide ?
Solved! Go to Solution.
You can create a column in Power Query. Select the hour field > Add column > Hour>Hour>Hour
You will obtain a column as the one in the right
And then, click on your hour column and select sort by the new created column:
I hope it helps!
You can create a column in Power Query. Select the hour field > Add column > Hour>Hour>Hour
You will obtain a column as the one in the right
And then, click on your hour column and select sort by the new created column:
I hope it helps!
User | Count |
---|---|
87 | |
84 | |
36 | |
35 | |
30 |
User | Count |
---|---|
96 | |
74 | |
67 | |
52 | |
51 |