- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- vendor industry
I want to show how a selected (drill through on a single vendor) vendor compares to there peers in the same industry and location by postcode.
I was playing around with the following DAX, which I know has too few arguments and doesn't work.....
Vendor Peer Comparison =
CALCULATE(
[Median Vendor Score],
FILTER(
ALL( 'VendorTable'[vendor_industry], 'VendorTable'[vendor_postcode])))
I want to be able to visualize, this is score of the vendor that you are currently looking at is and this is where all other vendors within the same postcode and industry are scored
Sample Data
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 |
any ideas how I could achieve this in a dynamic way?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@C_Lee , 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.
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview. ✨
️ November 12th-14th, 2024
Online Event
Register Here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@amitchandak thank you for suggesting ALLEXCEPT, which I tried and I got the 'Too few arguments' error. Do you have any other suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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 |
Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - January 2025
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
Subject | Author | Posted | |
---|---|---|---|
06-10-2024 01:00 AM | |||
06-05-2024 01:31 PM | |||
08-30-2023 08:32 AM | |||
07-31-2024 04:33 PM | |||
07-12-2024 04:55 AM |
User | Count |
---|---|
121 | |
80 | |
47 | |
45 | |
36 |
User | Count |
---|---|
178 | |
89 | |
69 | |
47 | |
47 |