Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Reorder the column in a matrix

Hey guys,

 

I have a quick question regarding the order of the columns in a matrix.

I have the below matrix and would like to have Start Time before End Time...how can I do this the easiest way? 

Below also the structure of my table

matrix2.PNGmatrix.PNG

 
 
6 REPLIES 6
amitchandak
Super User
Super User

Create measures like this

end time calculate(max(table[submission time]), table[Action]="End time")
Start time calculate(max(table[submission time]), table[Action]="Start time")

 

On matrix row use Name of requestor and On col use month and day from date.

Anonymous
Not applicable

@amitchandak  works as intended, however I would prefer to only have the hour in the value section...it is rather redundend since I have the day in the column headers.

matrix4.PNG

You can use .time

of format([timestamp],"hh")

 

like format end time = format([end time],"hh:mm")

or

end time = calculate(max(table[submission time].time), table[Action]="End time")
Start time= calculate(max(table[submission time].time), table[Action]="Start time")

or

end time =calculate(max(table[submission time]), table[Action]="End time").time
Start time =calculate(max(table[submission time]), table[Action]="Start time").time

Anonymous
Not applicable

Looks like it's getting closer. I managed to format the result to only show the hour and minutes but now the matrix isn't showing the only dates I want - I have a relative filter to only show last 2 days.

matrix5.PNG

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

You can move the start date on top of end date in the Values container of the Matrix visual.

image.png

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Anonymous
Not applicable

Hello,

 

my values are only from the column - Submission time -hour

 matrix3.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.