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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
patrick3
Helper II
Helper II

Matrix - Change "Level" of columns & values in the Matrix

Hi all,

So I've got an issue that seems like it should be simple to change, but I just can't work it out.
I'm using a matrix to display date by day of the month, with different metrics & want to compare 2 months - something like this:

matrix-issue.JPG

However, it's is grouping the metrics by date (bins) (February & March in this case), but I'd like to have the metrics side by side for each month. In a PivotTable, you can just swap "Month" & "Values around, like in this example:

matrix-issue-example.JPG

But I can't figure out how to do that here.

Anyone to the rescue?

Thanks,

Patrick

6 REPLIES 6
DevonVanDam
Helper I
Helper I

Does anyone know if this is possible by now? I also use measures and the problem is not in my data. 

 

Thanks,

Devon

v-yulgu-msft
Employee
Employee

Hi @patrick3,

 

Suppose the source table structure is similar to below. Under Query Editor mode, select [Leads], [Sales] and [ScvR] fields together, click "Unpivot Columns" to convert table structure.

2.PNG

 

You will get a new table like this:

1.PNG

 

When create the Matrix visual, add [Value Type] on the top of [Date(bins)] in "Columns" section. Also, click the third drill down icon.

3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

There is a "work around" this problem. 

 

Step 1. Create a Table in your model specifying 2 Types of data (works with any quantity), in this case Sales and Leads. Your Table will have 2 columns, Id and Type with these values, Id 1 Type "Lead", Id 2 Type "Sales".

 

Step 2. Create a measure with a switch, 

New Measure = SWITCH(
SELECTEDVALUE('New_Table_Name'[Id])
,1,[Lead measure]
,2,[Sales Measure]
)
 
Step 3. Add to your Matrix column, just over months your columns name "Type" of the new Table.
 
Step 4. Add the "New measure" to your Table. 
 
This technique works wonders to switch around data on your visuals.

Hi @v-yulgu-msft,

Thanks that's very helpful - not quite the solution I need, as SCvR is a measure rather then a column.

 

Regards,

Patrick

Hi @patrick3,

 

That case, I'm afraid it is not able to change the Matrix structure as you required.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TomMartens
Super User
Super User

Hey,

 

currently this is not possible in the MATRIX view.

 

I recommend to create an idea on ideas.powerbi.com

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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