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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors