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.
Hello Masters
I am trying to filter my table with DAX and create a new table.
I want to exclude companies from the main table those all factories are Inactive. Below picture; "Company C" should be excluded as all factories of Company C is Inactive. So new table will only have Company A, B and C
Can you please help?
Here, you can see the PBIX file.
https://drive.google.com/file/d/1zxp-Ln_e3Mzmzkefe68h5OWO76kQY2EH/view?usp=sharing
Solved! Go to Solution.
hi @Mercovito ,
Not sure if i fully get you, try to create a calculated table like:
Table =
CALCULATETABLE(
sheet1,
FILTER(
VALUES(sheet1[Company]),
"Active" IN CALCULATETABLE(VALUES(sheet1[Factory Active - Inactive]))
)
)
it worked like:
Table =
FILTER(
DISTINCT( Sheet1[Company] ),
NOT ISEMPTY(
CALCULATETABLE( Sheet1, Sheet1[Factory Active - Inactive] = "Active" )
)
)
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
hi @Mercovito ,
Not sure if i fully get you, try to create a calculated table like:
Table =
CALCULATETABLE(
sheet1,
FILTER(
VALUES(sheet1[Company]),
"Active" IN CALCULATETABLE(VALUES(sheet1[Factory Active - Inactive]))
)
)
it worked like:
Thank you so much; I need to burn my brain to understand this step by step 🙂
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 |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |