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 dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Team,
I would like to do a distinct count on a column (Total Encounters) but only count the encounters that also have the value of "No Show" in a separate column
Thanks,
James
Solved! Go to Solution.
Hi @JCuoco
You need to use Calculation with filter:
If you want to filter the table to show the rows which have "No Show" in a seperate column:
Measure =
Calculate(DISTINCTCOUNT(table[Total Encounters]),Filter(table,table[separate column]="No Show"))
If "No Show" is part of the values of data in seperate column, use @ValtteriN solution.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @JCuoco
You need to use Calculation with filter:
If you want to filter the table to show the rows which have "No Show" in a seperate column:
Measure =
Calculate(DISTINCTCOUNT(table[Total Encounters]),Filter(table,table[separate column]="No Show"))
If "No Show" is part of the values of data in seperate column, use @ValtteriN solution.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
@VahidDM thank you! This is absolutely perfect! love it! i did the "LONG" way last night and got the same number, so i know it is correct! THANK YOU
Hi,
Here is one way to do this:
Dax:
I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up!
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |