cancel
Showing results for 
Search instead for 
Did you mean: 
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
Super User
Super User

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
Super User
Super User

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 Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!