Forum Discussion
Filtering out zero/blank Matrix rows, part XXXVI
- 4 months ago
Hi markmsc,
You can try below measure and use it as a filter on table visual
Inventory Row Filter =
VAR NonZeroMonths =
COUNTROWS(
FILTER(
ALLSELECTED('Date'[Month]), -- your column field (May, June, July)
NOT ISBLANK(CALCULATE([Inventory])) &&
CALCULATE([Inventory]) <> 0
)
)
RETURN
IF(NonZeroMonths > 0, 1, 0)๐ I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
๐ก Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
๐ As a proud SuperUser and Microsoft Partner, weโre here to empower your data journey and the Power BI Community at large.
๐ Curious to explore more? [Discover here].
Letโs keep building smarter solutions together!
Hi markmsc
Power BI automatically removes a completely blank row so return a zero as blank.
IF ( [this measure] = 0, BLANK (), [this measure] )
Alternatively, you can remove zero directly from the main measure itself
CALCULATE ( SUM ( 'table'[column] ), KEEPFILTERS ( 'table'[column] <> 0 ) )
- markmsc4 months agoResolver I
Hi danextian -- thanks for your reply. This solution did not work for me unfortunately, possibly in part due to an issue I described in my reply to grazitti_sapna in this thread. Please see that reply for the solution I went with. Thank you again for your help. Really appreciate it.