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
saddas
Frequent Visitor

Create a new table with a column that conditionally replaces values

I have a data set that includes one column: Table 1: Qty.

Here is a link to the data set: https://www.dropbox.com/sh/9g6uvptyzazfl0u/AAAsElP-PuQxtnJOHCa-BGLWa?dl=0

I would like to use DAX to create a new table that returns all the values from the original table, except that it should calculate the 0.95 percentile and replace all values that exceed that value by the 0.95 percentile

For example, in my dataset, the 0.95 percentile is as follows:

PERCENTILEX.INC( 'Table 1', 'Table 1'[Qty] * 1.0, 0.95 ) = 6.5. Any values above 6.5 (in this case there is a value of 8.0 that should be replaced by 6.5.

Appreciate help with this. Thanks.

1 ACCEPTED SOLUTION
ALLUREAN
Solution Sage
Solution Sage

Hi, @saddas 

Please check this example:

 

https://www.dropbox.com/s/qz83sf9yhtkiufw/test%28allure-analytics.com%29.pbix?dl=0

 

Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.

Appreciate your Kudos !!!

https://allure-analytics.com/

https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA

https://www.linkedin.com/company/77757292/




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




View solution in original post

1 REPLY 1
ALLUREAN
Solution Sage
Solution Sage

Hi, @saddas 

Please check this example:

 

https://www.dropbox.com/s/qz83sf9yhtkiufw/test%28allure-analytics.com%29.pbix?dl=0

 

Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.

Appreciate your Kudos !!!

https://allure-analytics.com/

https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA

https://www.linkedin.com/company/77757292/




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




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.