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!
Please try the measure below as yout visual filter:
InventoryFilter =
VAR _MaxAbsValue =
MAXX (
VALUES ( 'Date'[Month] ),
ABS ( [Inventory] )
)
RETURN
IF ( _MaxAbsValue > 0, 1, 0 )Hi cengizhanarslan -- 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.