Forum Discussion
harshadrokade
4 years agoPost Partisan
DAX filter help needed
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 & Ven...
- 4 years ago
Does this work?
MS-original1 = VAR SelectedVendor = SELECTEDVALUE ( 'Vendorlist'[Vendor name] ) RETURN CALCULATE ( COUNT ( 'Vendordata'[Secondary Vendor] ), ALL ( 'Vendorlist' ), 'Vendordata'[Secondary Vendor] = SelectedVendor )
AlexisOlson
4 years agoSuper User
Does this work?
MS-original1 =
VAR SelectedVendor = SELECTEDVALUE ( 'Vendorlist'[Vendor name] )
RETURN
CALCULATE (
COUNT ( 'Vendordata'[Secondary Vendor] ),
ALL ( 'Vendorlist' ),
'Vendordata'[Secondary Vendor] = SelectedVendor
)- harshadrokade4 years agoPost Partisan
Thanks a lot sir. Appreciate your help.