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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kpct56591
Frequent Visitor

Hide Blank Rows not whole result

I am still learning Power BI, but this has to be one of the most frustrating parts of it. I am trying to hide Case Spend and Total Case Spend when it is blank for an item, but still show the Ship Qty and Gross Sales. In the picture example attached, item 00 has no case spend, while item 0 does. If I use the visual filter to hide Case Spend when blank or 0, it hides all of item 00 and only shows item 0. I have tried measures and still get the same result. I just want to collapse the two empty rows and save some space in the report.

 

The visual is a matrix, item number and the whited out line are rows, the rest are values shown as rows. Columns are months.

kpct56591_0-1747963256498.png

 

1 ACCEPTED SOLUTION

Could you please provide me some sample data how your doing.

View solution in original post

8 REPLIES 8
ajaybabuinturi
Memorable Member
Memorable Member

Hi @kpct56591,
Coud you please try below measures 

  1. Create new "MetricsName" table using "Enter Data" options.
    ajaybabuinturi_2-1747968521071.png
  2. Create measures like "Case Spend" and "Total Case Spend" if not created 
  3. Create a new measure like below 
Matrix Value = 
SWITCH(
    SELECTEDVALUE(MetricsName[Metric Name]),
    "Ship Qty", SUM('Sales_Data'[Ship Qty]),
    "Gross Sales", SUM('Sales_Data'[Gross Sales]),
    "Case Spend", 
        VAR v = SUM('Sales_Data'[Case Spend])
        RETURN IF(ISBLANK(v), BLANK(), v),
    "Total Case Spend", 
        VAR t = [Total Case Spend]
        RETURN IF(ISBLANK(t), BLANK(), t)
)​

 

3. Add the fileds as shown below and switch values to rows. Then uncheck the "Show items with no data".   
ajaybabuinturi_0-1747969665137.png

 

Using above steps you will get required results.

 

Thanks,
If you found this solution helpful, please consider giving it a Like👍 and marking it as Accepted Solution✔. This helps improve visibility for others who may be encountering/facing same questions/issues. 

 

Hello, this returned the following error:

kpct56591_0-1748027017612.png

 

Could you please provide me some sample data how your doing.

Hi @kpct56591 ,

we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.

If the response addressed by the community member for  your query, please mark it as Accept Answer and click Yes if you found it helpful.

Hi @kpct56591 ,

we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.

 If the response addressed by the community member for  your query, please mark it as Accept Answer and click Yes if you found it helpful.

 

Thank You.

Hello @kpct56591 

If the information is helpful, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to help you.

 

We value your feedback, and it will help us to assist others who might have a similar query. Thank you for your contribution in enhancing Microsoft Fabric Community Forum.

pankajnamekar25
Super User
Super User

Hello @kpct56591 

 

You can add visual level filter from filter pane for any numric feild is not blank

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

Hello, the visual level filter hides 00 completely, instead of just the empty rows.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.