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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors