Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi all,
I'm struggling with the DAX for a percentile calculation measure. In my Item data source I have (among other columns) Item ID and Manufacturing Location.
In my Defect data source I have (among other other columns) Defect ID, Defect Type, and Item ID.
I made a measure for defect percentage as Defect % = DISTINCTCOUNT('Defect'[Item ID]) / DISTINCTCOUNT('Item'[Item ID]).
My goal is to find the percentile of each manufacturing location's Defect % so that I can then calculate the mean and standard deviations of the distribution of Defect % for other calculations.
I'm having a lot of trouble with the DAX for this, so any help is greatly appreciated.
@BadAtDAX can you please share expected output in table for more understanding.Thank You!!
Sure, my expected output is as follows:
Manufacturing Location | Defect % | Defect % Percentile |
New York | 2% | 0.00% |
Los Angeles | 6% | 60.00% |
San Francisco | 2% | 0.00% |
Chicago | 8% | 100.00% |
Philadelphia | 7% | 80.00% |
Detroit | 3% | 40.00% |
Hi, @BadAtDAX
Can you provide some of the source data, or explain how the expected output was obtained?
Best Regards
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
71 | |
36 | |
21 | |
19 | |
13 |
User | Count |
---|---|
125 | |
37 | |
31 | |
27 | |
24 |