Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
dmuralli1829
Frequent Visitor

Percentile exe Calculation by summarize or Grouping

Hi 

 

I want to caculate percentile .exe for the lab parameters. 

 

I have the applied the following dax

Parameter to dynamically Adjust Lower and Upper Values:

Lower Limit = PERCENTILEX.EXC(ALL('Lab'), 'Lab'[Value],[Lower Percentile Value])
Higher Limit = PERCENTILEX.EXC(ALL('Lab'), 'Lab'[Value],[Higher percentile value])
Lower Parameter = GENERATESERIES(1, 5, 1)
Parameter L Value = SELECTEDVALUE('Parameter L'[Parameter L])
Lower Percentile Value = 'Parameter L'[Parameter L Value]/100
Parameter UL = GENERATESERIES(10, 99, 1)
Parameter UL Value = SELECTEDVALUE('Parameter UL'[Parameter UL])
Higher percentile value = 'Parameter UL'[Parameter UL Value]/100
 
I have set up slicer for Lab parameter, when i select ALT, the lower Limit and Upper limit is expected to calcualted for selected ALT Lab parameter instead it is considering and selecting values for all lab Parameter. The values are displayed in Higher and Lower Limit column in the table.
 
I have copied partial table for your refrence.
 
Lab Table:
Lab ParameterVisit NameSite NumberSubject NumberValueHigher LimitLower Limit
ALTDay 150155015001117903.8
ASTDay 15015501500177903.8
Basophils (%)Day 1501550150010.5903.8
Basophils (Abs)Day 15015501500120.9903.8
Blood Urea NitrogenDay 15015501500113.2903.8
CreatinineDay 1501550150010.5903.8
D-DimerDay 1501550150010.957903.8
eGFRDay 150155015001116.89903.8
Eosinophils (%)Day 1501550150012.2903.8
Eosinophils (Abs)Day 15015501500192903.8
HbA1cDay 1501550150018.3903.8
HematocritDay 15015501500134.2903.8
HemoglobinDay 15015501500110.9903.8
HS TroponinDay 1501550150010.01903.8
hsCRPDay 15015501500170903.8
Lactate DehydrogenaseDay 150155015001394903.8
Lymphocytes (%)Day 15015501500141.6903.8
Lymphocytes (Abs)Day 1501550150011739903.8
Monocytes (%)Day 1501550150018.6903.8
Monocytes (Abs)Day 150155015001359903.8

 

I want to calculate the percentile.exe. values to display the lower and upper limit for the selection of lab parameter via slicer.

 

dmuralli1829_2-1622010940009.png

 

 

your support and help is much appreciated

regards

MD

 

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @dmuralli1829 ,

 

You can try to use allselected in your measure:

 

Lower Limit = PERCENTILEX.EXC(ALLSELECTED('Lab'), 'Lab'[Value],[Lower Percentile Value])
Higher Limit = PERCENTILEX.EXC(ALLSELECTED('Lab'), 'Lab'[Value],[Higher percentile value])

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @dmuralli1829 ,

 

You can try to use allselected in your measure:

 

Lower Limit = PERCENTILEX.EXC(ALLSELECTED('Lab'), 'Lab'[Value],[Lower Percentile Value])
Higher Limit = PERCENTILEX.EXC(ALLSELECTED('Lab'), 'Lab'[Value],[Higher percentile value])

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

Anonymous
Not applicable

You can't use ALL around a table if you want the measure to be responsive to your selections. ALL effectively IGNORES all filters that may exist on the table or come to the table from outside.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.