Forum Discussion
Anonymous
4 years agoNot applicable
Filter All on 2 columns DAX
Hi All, Scenarion I have the following data a list of vendors Some work in the same industry so I want to do a peer comparison vendor score 1-10 median measure for vendor score vendo...
- Anonymous4 years agoVendor Peer Comparison = CALCULATE(MEDIANX(VendorTable, VendorTable[Vendor_score] ),ALLEXCEPT(VendorTable, VendorTable[vendor_industry], VendorTable[vendor_postcode]))
amitchandak
4 years agoSuper User
Anonymous , Try allexcept
Vendor Peer Comparison =
CALCULATE(
[Median Vendor Score],
FILTER(
ALLEXCEPT( 'VendorTable'[vendor_industry], 'VendorTable'[vendor_postcode])))
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- Anonymous4 years agoNot applicable
amitchandak sure thank you for responding, it would look like below all sitting in the one table
Vendor Vednor Score Vendor Industry Postcode State Computer Share 3 Technology 3000 VIC Computers Now 2 Technology 3000 VIC A J Builders 3 Construction 4000 QLD Training Solution 1 Training 2000 NSW Informa 2 Training 2000 NSW Salesforce 5 Technology 3000 VIC - Anonymous4 years agoNot applicable
amitchandak thank you for suggesting ALLEXCEPT, which I tried and I got the 'Too few arguments' error. Do you have any other suggestions?
- Anonymous4 years agoNot applicableVendor Peer Comparison = CALCULATE(MEDIANX(VendorTable, VendorTable[Vendor_score] ),ALLEXCEPT(VendorTable, VendorTable[vendor_industry], VendorTable[vendor_postcode]))