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
mitchterlisner
New Member

Matrix visualization - limitations / alternatives

I'm a pretty new PowerBI user, so I appreciate your patience; I'll try to balance brevity and clarity with specific questions at the end.

 

We're trying to create a particular report with a matrix visualization, and we've run into a roadblock.

 

Cases can go through different statuses, and we want to show how many days each case spent in each status, for example:

 Status:S1S2S3
Case:    
C1 352
C2 331
C3 297

 

We're using a matrix because different customers use different statuses (for example, another customer might also use another status S4), and each customer only wants to see columns for their own statuses. The source data is structured like (Case, Status, DaysInStatus).

 

One additional note, in case it's relevant - our actual matrix visualization includes case attributes, as "Rows", with "Stepped layout" turned off, so it hides the hierarchy and each case still displays as a single row.

 Attr1Attr2S1S2S3
C1GreenRed352

 

Visually, the matrix works fine - it displays the correct status columns for each customer, with the days in each for each case.

 

However, we've hit a critical roadblock getting business value, finding bottlenecks. We want customers to be able to identify statuses where cases get stuck, and find cases which spent a long time there.

 

Ideally, we'd like the matrix visualization to 1) show averages per status, and 2) be able to sort the visualization by the status columns. For example, we see the average for S2 is 5.7, and then "Sort descending" S2, so it would bubble C3 to the top, like this:

  S1S2S3
C3 297
C1 352
C2 331
Avg 2.65.73.3

 

However, I can't find how to display a row of averages, and it looks like the matrix visualization doesn't support sorting the way we want; the "Sort" cannot sort on specific status columns, and it doesn't sort the cases (rows) - it only sorts the hidden hierarchy within each case - which in our case looks makes it look like sort is broken.

 

Question 1: Is there any way to configure the matrix visualization to display averages for the matrix, and allow for sorting cases the way we want to sort?

 

If we can't get this from the matrix visualization, we can ask our customers to export the data (to Excel, etc) to calculate the averages and sort the cases externally. However, the matrix visualization exports the source data - not the matrix - and our business team said we cannot ask customers to do the pivot themselves - so we cannot use the CSV export of the source data as our solution. Additionally, it seems impossible to simply copy the values from the screen to the clipboard, to be able to paste into Excel.

 

Question 2: Is there any way to configure the matrix visualization to export the CSV of the matrix seen on-screen (not the source data)?
Question 3: Is there any way to enable selecting/copying the matrix to the clipboard?

 

Finally, we are open to third-party matrix visualizations or solutions that might require a little coding (i.e., an R or Py visualization), if that's what it takes.

 

Question 4: Is there any third-party matrix visualization with the capabilities we need?
Question 5: If this would require a custom visualization, is there a quick-start guide specific to creating a matrix? (I'm a skilled dev but no experience in R/Python/visualizations.)

 

Thank you in advance
-Mitch

1 ACCEPTED SOLUTION

Thank you for your suggestions.  The suggestions above regarding using the Average function are correct, but I was blocked by a previous step.

 

I found the solution for the part that was tripping me up.  (With assistance; thank you to Microsoft resource.)

 

Our matrix looked like this:

snippet1.png

 

When I tried to enable "Row subtotals", it totally messed up the visualization, like this:

snippet2.png

...so I just disabled "Row subtotals".  That was my mistake.


I needed to enable "Row subtotals", and enable "Per row level", and then disable the subtotal for every row except "Case Number". 

snippet3.png

Then I finally saw the matrix appear correctly, with the row along the bottom.

snippet4.png

 

Now I was finally ready to make the change suggested above, to change the "Value" from the "[Sum of] DaysInStatus" to the "Average of DaysInStatus".  After doing that, and updating the label, it was ready.

snippet5.png

(Note, changing that from sum to average affects not only the subtotal row, it also affects the cells in the matrix.  That was okay because our source data is already aggregated.)

 

Final note, regarding the CSV export - I received confirmation (from the Microsoft PowerBI expert) that no, the matrix cannot simply export to CSV directly in the pivoted format.

View solution in original post

5 REPLIES 5
v-zhenbw-msft
Community Support
Community Support

Hi @mitchterlisner ,

 

You can configure the average of days and sort by it.

 

matrix1.jpg

 

matrix2.jpg

 

But you cannot export the same structure as the matrix table, you just can export as the source data.

If you want to export the matrix-seen, you need to pivot it in Query Editor.

 

matrix3.jpg

 

matrix4.jpg

 

Then you can export the data like the matrix structure.

 

matrix5.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

BTW, pbix as attached.

Thank you, however, those solutions do not seem to work in our situation.  I'll start by mentioning we're not using imported data, we're using liveconnect to AAS; I think that creates limitations for us.

 

Those steps show how to configure the Value to be an average, but we don't want the Value (displayed in every cell of the matrix) to be an average, we want the row of averages along the bottom.

PowerBI issue 1.png

 

For reference, our source data is shaped like this:

PowerBI issue 2.png

 

Those steps show in a screenshot a row of averages along the bottom, but we cannot find how to do that.

PowerBI issue 3.png

We've try enabling both "Row subtotals" and "Column subtotals", and neither adds a footer row of averages. Are we missing another configuration step?

 

Finally, the instructions show how to pivot it in the Query Editor, but we cannot do that, because we're using liveconnect to AAS, not imported data. We control the AAS model and we could reshape the AAS model, but we did not pivot it in the AAS model because in our understanding there's no other PowerBI visualization that could support the dynamic columns, other than the matrix.

Hi @mitchterlisner ,

 

We create a sample using your source data.

 

ma1.jpg

 

ma2.jpg

 

ma3.jpg

 

If you want to get the average in Total, you can configure the days in status to be averaging.

 

ma4.jpg

 

Or you can use this measure,

 

Measure = 
IF(
    HASONEVALUE('Case'[case number]),
    SUM('Table'[daysinstatus]),
    AVERAGE('Table'[daysinstatus]))

 

ma5.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

BTW, pbix as attached.

Thank you for your suggestions.  The suggestions above regarding using the Average function are correct, but I was blocked by a previous step.

 

I found the solution for the part that was tripping me up.  (With assistance; thank you to Microsoft resource.)

 

Our matrix looked like this:

snippet1.png

 

When I tried to enable "Row subtotals", it totally messed up the visualization, like this:

snippet2.png

...so I just disabled "Row subtotals".  That was my mistake.


I needed to enable "Row subtotals", and enable "Per row level", and then disable the subtotal for every row except "Case Number". 

snippet3.png

Then I finally saw the matrix appear correctly, with the row along the bottom.

snippet4.png

 

Now I was finally ready to make the change suggested above, to change the "Value" from the "[Sum of] DaysInStatus" to the "Average of DaysInStatus".  After doing that, and updating the label, it was ready.

snippet5.png

(Note, changing that from sum to average affects not only the subtotal row, it also affects the cells in the matrix.  That was okay because our source data is already aggregated.)

 

Final note, regarding the CSV export - I received confirmation (from the Microsoft PowerBI expert) that no, the matrix cannot simply export to CSV directly in the pivoted format.

Hi @mitchterlisner ,

 

Glad to hear that you have solved your issue.

Please kindly mark your reply as a solution to help others find it more quickly and end this thread.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.