Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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 Experts,
Why the following dax does not filter multiple choice in one column like "AND" operator in "IF" function?
Table = SUMMARIZECOLUMNS('Sheet1'[User],'Sheet1'[company],'Sheet1'[Certification],
filter('Sheet1',[Certification] in {"Cert A"} && [Certification] in {"Cert B"})
)
What is an easy solution?
Solved! Go to Solution.
As an alternative solution check the following:
https://drive.google.com/file/d/1_MdjBI60hzixXl799L80KeY3XXLEkGNQ/view?usp=sharing
As an alternative solution check the following:
https://drive.google.com/file/d/1_MdjBI60hzixXl799L80KeY3XXLEkGNQ/view?usp=sharing
Try:
A & B =
VAR A = CALCULATATBLE(VALUES(Sheet1[User]), Sheet1[Certification] = "Cert A")
VAR B = CALCULATATBLE(VALUES(Sheet1[User]), Sheet1[Certification] = "Cert B")
RETURN
COUNTROWS(INTERSECT(A , B))
use the measure in a visual as a filter in the filter pane an set the value to 1
Proud to be a Super User!
Paul on Linkedin.
How we can have company and date columns in Intersect table?
https://drive.google.com/file/d/1ibg2jv4ecPffXCJCqCQz4J6EjLIKxh6t/view?usp=sharing
Try:
Table = SUMMARIZE(filter('Sheet1', Sheet1[Certification] in {"Cert A"} && Sheet1[Certification] in {"Cert B"}), 'Sheet1'[User],'Sheet1'[company],'Sheet1'[Certification])
)
Though I'm not sure if that is what you are after. The && in the filter means the values should be Cert A and Cert B, as opposed to Cert A or Cert B
If it's OR you are after, try:
Table = SUMMARIZE(filter('Sheet1', Sheet1[Certification] in {"Cert A", "Cert B"}), 'Sheet1'[User],'Sheet1'[company],'Sheet1'[Certification])
)
Proud to be a Super User!
Paul on Linkedin.
I got nothing.
As you guessed I am looking for AND combination. User Name1 has Cert A and Cert B in the certification column. So I am looking for the DAX function that returns User Name 1 in its result.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |