Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi!
Can somebody assist me with this calculation as I have minor trouble:
I have a column which I want to count, but I want to exclude all the rows in that column containing the number "110". How would I write a DAX expression for this?
So I want to have something like: "Count all the values in this column, except those cells containing "110".
Hoping somebody can help,
Thanks
Solved! Go to Solution.
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
Count except 110 =
COUNTROWS ( FILTER ( 'Table', NOT CONTAINSSTRING ( 'Table'[ColumnA], "110" ) ) )
https://www.dropbox.com/s/2ppp72bfmuegzd3/pbiuser.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Try:
rows =
VAR calc = SUM(Table[column])
RETURN
CALCULATE ( COUNT(Table [column]), FILTER (Table [ column ], calc <> 110)
Proud to be a Super User!
Paul on Linkedin.
Hi, @Anonymous
Please check the below picture and the sample pbix file's link down below.
Count except 110 =
COUNTROWS ( FILTER ( 'Table', NOT CONTAINSSTRING ( 'Table'[ColumnA], "110" ) ) )
https://www.dropbox.com/s/2ppp72bfmuegzd3/pbiuser.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Schedule a short Teams meeting to discuss your question
Hi,
Thank you so much! This seemed to work! Appreciate it a lot!
Check out the May 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
71 | |
70 | |
51 | |
47 |
User | Count |
---|---|
45 | |
38 | |
33 | |
30 | |
28 |