Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi All,
Scenarion
I have the following data
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.
@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.
@amitchandak thank you for suggesting ALLEXCEPT, which I tried and I got the 'Too few arguments' error. Do you have any other suggestions?
@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 |
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 31 | |
| 27 | |
| 24 |