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
CSSR
Frequent Visitor

Change order of 2 value fields in matrix

Hi,
I am unable to change sorting of value fields in below metrix, well I do not know how to do it. Currently, I have
 - two measures (ABC, 123) in a value field,
 - calendar hierarchy in a column field and (months and Years)
 - customer column in row field. 

As you can see from a below print screen (the 1st one), my value fields are grouped by period, so I have ABC and 123 under Period 01 etc. and this is not what I want. I want to see a trended view 1 - 12 months for ABC measure with subtotal after it and then the same trended view for 123 measure (see 2nd print screen).
I have been playing with it for since yesterday and I could not find a way how to do it 😞 ....

 

This is how it looks like now (not desired outcome)

Power BI, matrix.PNG

 

This is how I want to have it in power bi matrix (desired outcome)

Power BI, matrix_3.PNG

 

 

 

these are my fields in matrix
Power BI, matrix_2.PNG

 

Thanks in advance for your help and comments! 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @CSSR ,

 

Create a disconected table with the following information

ID Measure
1 123
2 ABC

 

Make the sorting of the Measure column by the ID column then do the following steps:

  • Add Measure column on the matrix before the Year hierarchy
  • Create the following measure:
Values for matrix = SWITCH (SELECTEVALUE(Table[ID]), 1 , [123], 2, [ABC])

 

Now use this measure instead of the other two in the values.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @CSSR ,

 

Create a disconected table with the following information

ID Measure
1 123
2 ABC

 

Make the sorting of the Measure column by the ID column then do the following steps:

  • Add Measure column on the matrix before the Year hierarchy
  • Create the following measure:
Values for matrix = SWITCH (SELECTEVALUE(Table[ID]), 1 , [123], 2, [ABC])

 

Now use this measure instead of the other two in the values.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Pragati11
Super User
Super User

Hi @CSSR ,

 

Try making your both measures for ABC and 123 as columns. Then move these both columns to the COLUMN section in the matrix visual.

 

Try this if this works.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.