Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
8 | |
8 | |
8 | |
6 |
User | Count |
---|---|
14 | |
12 | |
11 | |
9 | |
9 |