Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a table as sample below
I need to filter the table by Category when all Sub-Categories are Inactive. In the sample, after filtering, the table would only show Cat B.
Is it possible with DAX ?
Thank you
Solved! Go to Solution.
Hi @patlopes
please try
FilterMeasure =
INT (
ISEMPTY (
FILTER (
CALCULATETABLE (
VALUES ( 'Table'[Status] ),
ALLSELECTED ( 'Table' ),
VALUES ( 'Table'[Category] )
),
'Table'[Status] = "Active"
)
)
)
you can also plot with the measure like below, maybe more intuitive:
hi @patlopes
try to plot a visual with Category and filter the visual with a measure like:
Measure =
VAR _list=
CONCATENATEX(
VALUES(TableName[Status]),
TableName[Status]
)
RETURN
IF(
_list = "Inactive",
1, 0
)it worked like:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 11 | |
| 9 | |
| 8 | |
| 8 |