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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.