Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have the following Table
| Row | Customer # | Type Contact | Name | Comments |
| 1 | 1 | ACCT | Joe | Is ACCT |
| 2 | 2 | ACCT | Ted | Is ACCT |
| 3 | 2 | PURCH | Maria | Not ACCT and ACCT Exist for this Customer in other row |
| 4 | 3 | PURCH | Edy | Not ACCT but ACCT Does NOT Exist for this Customer |
There are only 2 option of Type Contact: ACCT or PURCH
I need to filter the rows with the following conditions:
1. If Customer Type Contact is only ACCT, the row needs to be included.
2. If for a Customer there are both type of Contacts, select only ACCT.
3. If Customer Type Contact is only PURCH, the row needs to be included.
In the example, Green Rows should be included and the Red Row should NOT be included in my data.
I was trying to get a calculated row or measure that give a binarial value include /not include but I couldn't find a right one.
Thank you vm for your help!
Solved! Go to Solution.
Thank you very much! Just switched "Y" and "N". Nice solution creating a calculated column.
Hi Calculated column maybe.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 18 | |
| 12 | |
| 11 |