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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
johnbasha33
Super User
Super User

Matrix visual

this visual is a matrix in Power BI, Rows are coming from Division column column values are coming from Bucket. this bucket has a single blank value thats why it is blank before paste due bucket. and finally we have values coming from On hand qty, Current Value, and open purchases. since the bucket has one blank, values are being showed like that my expectation is.. I'm trying to create a table where only On Hand Qty and Current Value show up for the blank bucket. Past Due, Aug'23, Sep'23, etc; all of these buckets should only have Open Purchases. I.e. remove the empty columns. Do you know how to achieve this?

johnbasha33_1-1692693926730.png

is it possible to acheive like below in Power BI matrix?

johnbasha33_2-1692694010403.png

 

@amitchandak @Idrissshatila @Ritaf1983 @parry2k @Ahmedx @Pragati11 @mwegener @Greg_Deckler @lbendlin @Syk @danextian @Ashish_Mathur @MFelix 

10 REPLIES 10
johnbasha33
Super User
Super User

@mwegener expanding hierarchy works but we have other rows not looking good.

johnbasha33_0-1692720703385.png

The downside is the table looks bad because there's part numbers with inventory, but no purchases.

mwegener
Most Valuable Professional
Most Valuable Professional

How did you deal with this problem before?

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


PaulDBrown
Community Champion
Community Champion

See if this helps

 

https://community.fabric.microsoft.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-Power... 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






johnbasha33
Super User
Super User

@mwegener  this is working for one measure at a time, is there a way to show up all 3 at a time? 

johnbasha33_0-1692714509977.png

 

mwegener
Most Valuable Professional
Most Valuable Professional

Have you expanded the hierarchy in the columns?

 

SwitchMeasure.png

 

In the attachment you can find my example file

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


@mwegener @lbendlin @Ritaf1983 @amitchandak @Pragati11  can someone please assist with this?

mwegener
Most Valuable Professional
Most Valuable Professional

Hi,

Power BI only hides categorical columns no measure columns.

 

So you need a disconnected table with a column containing the identifiers "On Hand Qty", "Current Value" and "Open Purchases".

 

Using a measure and the SWITCH statement, you then assign the calculation of the corresponding key figure to each column label.

 

Sample code for the measure:

SWITCH (
    SELECTEDVALUE(ColumLayout[Colum]),
    "On Hand Qty", [On Hand Qty],
    "Current Value", [Current Value],
    "Open Purchases", [Open Purchases]
)

 

Best regards
Marcus

 

 

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


thanks for looking into this, dint exactly followed your suggestion.

you want me to create a separate table only with these 3 columns values in one column and use the above switch ,easure in the matrix?

mwegener
Most Valuable Professional
Most Valuable Professional

Yes, because only column values are suppressed if they are blank.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


how to do that, can you give me any reference?

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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