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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Remove a single blank row from a matrix

Good Afternoon,

 

I have created a matrix using two measures and a slicer, when one of the measures is <blank> I would like to hide just this row leaving the other measure visable, is this possible?

 

Example without blanks:

Count  6

Average 3

 

Example with Blanks:

Count 6

Average 

 

What I would like to see, when there is a blank:

Count 6

 

Hoepfullythis makes sense?

 

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

To my knowledge, I'm pretty sure there isn't an elegant way to do this at this time.

Here are some related ideas you can vote and comment on to add your support to encourage Microsoft to fix this limitation:

Hide/Show Column on Table

Show/Hide columns in report based on expression.

Power BI hide/show column

 

and here is a workaround that you may refer to:

Create a separate dim table just with measure name as below:

1.JPG

Then create another measure:

Measure = IF(SELECTEDVALUE('Table'[Type])="Average",[Average] ,IF(SELECTEDVALUE('Table'[Type])="Count",[Count]))

Now drag the field Type from this new table and this new measure into a visual.

2.JPG3.JPG

and here is sample pbix file, please try it.

 

 

Best Regards,

Lin

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

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

i have calculated the location wise fillrate(measure in %) with customers i am comparing two customers fillrate and i need to remove the empty row.we have only single measure here that is fillrate

 

location       periods(8*1,8*2,8*3)     total

india                          20%,30%,_       50%

USA                           _,_,_                   _

jyothi12_0-1661166248760.png

 

Anonymous
Not applicable

how would we remove the entire row 

 

v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

To my knowledge, I'm pretty sure there isn't an elegant way to do this at this time.

Here are some related ideas you can vote and comment on to add your support to encourage Microsoft to fix this limitation:

Hide/Show Column on Table

Show/Hide columns in report based on expression.

Power BI hide/show column

 

and here is a workaround that you may refer to:

Create a separate dim table just with measure name as below:

1.JPG

Then create another measure:

Measure = IF(SELECTEDVALUE('Table'[Type])="Average",[Average] ,IF(SELECTEDVALUE('Table'[Type])="Count",[Count]))

Now drag the field Type from this new table and this new measure into a visual.

2.JPG3.JPG

and here is sample pbix file, please try it.

 

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
FiveAces
Frequent Visitor

Try using the Filters pane to select the measure in questions and apply a filter of 'is not blank'.

Anonymous
Not applicable

This filters the complete matrix, not just the row that I am interested in so I end up with no rows at all

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

Top Solution Authors