Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
Instead of ALL Function, check ALLSELECTED Function.
Instead of ALL Function, check ALLSELECTED Function.
Hi,
Share a dataset and show the expected result.
Hi,
Customer Name | Supplier | Sales CY |
Customer C | Supplier B | 1000 |
Customer A | Supplier B | |
Customer D | Supplier B | 500 |
Customer B | Supplier B | 510 |
Expected result is to show that the supplier sells product to 75% of the customers in the sample table above. The part I'm struggling with is that their are customers in my Customer Table that haven't purchased this year and I want to exclude them from the evaluation. Hope this makes sense. 🙂
Thanks
Hi @davehus,
Try this formula
=COUNT(Table1[Sales CY])/DISTINCTCOUNT(Table1[Customer Name])
Hope this helps.
Hi Asish,
Thanks for this.
Sales CY is a measure and not a column. I'm currently using this logic to determine how many sites are supplied.
Delivery Points Supplied = CALCULATE(DISTINCTCOUNT(Customer[Customer Number]), FILTER(Customer, CALCULATE([Sales CY]>0))) - This works fine for me.
However when I write the measure to capture sites that are not purchasing from the selected supplier, it includes all my customers when I only want to return customers that have purchased this year.
Hope this makes sense.
Hi,
Share the link from where i can download the file and show the expected result there (actual figure which you are expecting the formula to return).
Hey,
w/o more information about the tables contained in your data model and how these tables are related it will become a little difficult to help you with any DAX statement either a measure or a calculated column.
Maybe this post addresses a similar requirement:
https://community.powerbi.com/t5/Desktop/How-to-build-a-white-space-report/m-p/269666#M121457
Hopefully this gets you started
Regards
Tom
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |