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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Navemba
Regular Visitor

Matrix rows with two headers

Hi,

I have a table similar to the one bellow

image.png

And I wanted to create a matrix similar to this one

image.png

 

Basically, the takeoff and landing excluding the (blanks) and the "-1", but when I apply the filter to one it affects the other as it should when you filter some column.

I tried a few things but wasn't able to achieve this result. I keep getting the landing combined with the takeoff or vice-versa.


I also thouht of creating a new column where I would merge the two basically, like 'landing 12', 'takeoff 37', etc. This way I think I would be able to represent the data like this, but I don't like the idea of creating a merging column for this and also it doesn't work in cases when you have a takeoff and a landing track.

 

Is there any way of doing this?

 

Thanks in advance!

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, right click on the first column and select "Unpivot Other Columns".  To the matrix visual, drag Attribute and Value to the Row labels and Hour to the Column labels.  Write this measure

Count = countrows(Data)

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.