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 table as Vendordata (See at bottom). There is other table which has Vendor names as well (Vendorlist) & a slicer is created based on Vendor name from Vendorlist table. Vendordata & Vendorlist tables are connected with each other with Vendor name only.
I have created a card visual & I want to see how many clients using selected vendor in slicer as Secondary vendor.
E.g. If I select ABC4 in the slicer, I want the card visual to show count as 4 becasue there are 4 clients using it as Secondary vendor. If I select ABC6 in the slicer, I want the card visual to show count as 3.
I have created a dax but since two tabes connected with Vendor name only & I have slicer as Vendor name, it is filtering the table & showing count as blank. Pls help sir.
Table Vendordata-
| Client ID | Vendor | Secondary Vendor | Service | Service used? |
| 1 | ABC1 | ABC4 | XYZ1 | Yes |
| 2 | ABC1 | ABC4 | XYZ1 | Yes |
| 3 | ABC1 | ABC4 | XYZ1 | Yes |
| 4 | ABC1 | ABC4 | XYZ2 | Yes |
| 5 | ABC4 | ABC5 | XYZ2 | Yes |
| 6 | ABC4 | ABC5 | XYZ3 | Yes |
| 7 | ABC5 | ABC6 | XYZ3 | Yes |
| 8 | ABC2 | ABC6 | XYZ3 | No |
| 9 | ABC7 | ABC6 | XYZ3 | No |
Solved! Go to Solution.
Does this work?
MS-original1 =
VAR SelectedVendor = SELECTEDVALUE ( 'Vendorlist'[Vendor name] )
RETURN
CALCULATE (
COUNT ( 'Vendordata'[Secondary Vendor] ),
ALL ( 'Vendorlist' ),
'Vendordata'[Secondary Vendor] = SelectedVendor
)
Does this work?
MS-original1 =
VAR SelectedVendor = SELECTEDVALUE ( 'Vendorlist'[Vendor name] )
RETURN
CALCULATE (
COUNT ( 'Vendordata'[Secondary Vendor] ),
ALL ( 'Vendorlist' ),
'Vendordata'[Secondary Vendor] = SelectedVendor
)
Thanks a lot sir. Appreciate your help.
HI @Ashish_Mathur Can youp pls help me on above. Its the smilar table for which you helped me on last query.
Hi,
Transform data the way i did in the previous question.
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 |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |