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
udian
Helper III
Helper III

Matrix or Table

Hi,

 

I am trying to achive the following layout:

 

 

 

I want to display Category and Sub Category in the rows and payment duration (with values <1H, <2H, <12H) in the columns and the # Payments measure. The drill option of the matrix is not good enough (there will be more then 2 fields on the rows eventually).

 

Any workarounds?

 

Thanks!

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

You could create three separate measures instead of using the Payment Duration column in the columns section of the matrix.  Something like this should work:

 

[Less than 1 Hour] =
CALCULATE ( 
	[# of Payments measure], 
	Table[Payment Duration] = "<1H" 
)

Then you could keep everything in a table format, or use a matrix format and put the three measures in the values section.

View solution in original post

Hi @udian

In Matrix, when add “payment duration” to Columns field, the time ranges can’t change according to the SLA slicer. To meet your requirement, we need to create a calculated column which formula contains all time ranges and reflect changes to each selection in your slicer.

 

Best Regards

Maggie

View solution in original post

4 REPLIES 4
Isaacpickel
New Member

Hi,

 

The easist way to solve this without creating more calculated fields is to turn the 'Stepped Layout' function off in the row headings section of the matrix formatting. It gives the matrix more of the classic pivot table feel that most people are after.

 

There's a good write up on how to use the matrix function on the Microsoft site.

 

https://docs.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual

 

 

Anonymous
Not applicable

You could create three separate measures instead of using the Payment Duration column in the columns section of the matrix.  Something like this should work:

 

[Less than 1 Hour] =
CALCULATE ( 
	[# of Payments measure], 
	Table[Payment Duration] = "<1H" 
)

Then you could keep everything in a table format, or use a matrix format and put the three measures in the values section.

 

The solution you suggested doesn't solve the problem because the time ranges that should be displayed in the columns change according to the SLA slicer.

 

For every SLA there are different time ranges so it's not possible to hard code it into the measure. 

 

The only thing that is fixed is the number of time ranges displayed - no matter what SLA is chosen there will always be 3 time ranges.

 

Thanks!

Hi @udian

In Matrix, when add “payment duration” to Columns field, the time ranges can’t change according to the SLA slicer. To meet your requirement, we need to create a calculated column which formula contains all time ranges and reflect changes to each selection in your slicer.

 

Best Regards

Maggie

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.