Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi All,
stupid question.. but I really cannot fix it..
I am trying to distinct count the values in column A excluding the values in column B
| A- Value | B-Exclude |
| 1 | 1 |
| 2 | |
| 1 | |
| 2 | |
| 3 | |
| 3 | |
| 4 |
The result should be 3... but if I do.. =CALCULATE(DISTINCTCOUNT(Table1[A]);ALLEXCEPT(Table1;Table1[B])) doesn't work.. how should I fix it?
thanks
Simone
Solved! Go to Solution.
i forget to add formula where
you can create a new column and filter the page base on true 😃 or another way around
hope this it will help
Not really because this is just a dummy example.. but I want to exclude any value from column B that appears in column A
Result:=CALCULATE(COUNT(Table1[Simone]),FILTER(Table1,Table1[Simone]<>Table1[Exclude]))
but the result should be 3.. because I consider the 1 as a value... even if not repeated
example
Please look atention on my solution
you saying you want to show values from column1 where is not in column 2 correct ?
then my IF create value false where the values are iqual 😃
if i filter my page where this column is all ways true you will see 1,4 and 5 excloding 2 and 3
yes, your solution works in Power BI .. and I learned a new things!! thanks for that.. but I am looking a solution for power query. Let me try to create the same and I will let you know.
the same think but in mesure 😃 is this you want ?
i forget to add formula where
I thought I was answering... thank youuu soooo much!!! worked magically 🙂
Chapeau!!!!!!!!!!!!!
the same as your exemple 😃
thanks @amitchandak ... but I want to add to any value in column B .. not only 1 since it is an example.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |