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
Anonymous
Not applicable

Parameters selection doesn't work, only produces output with default value

Hello,

 

I'm trying to produce a calculated column "delay penalty" that is calculated based on some user input parameters.

 

These work on their own in simple calculations but with a larger fuction the calculation is always done with the default value. Any change in the selected values produce a different output. The calculation is correct with the default values, so the function is otherwise correct.

 

Function below, I have tried replacing the parameters with every option,  even with the SELECTEDVALUE function. Selection never affects the result.

 

Parameters in bold.

 

Delay penalty =
 
IF('Delay penalty per week or day'[Delay penalty per week or day Value] = 0;
 
IF('PO data'[Delay in weeks] > (([Max penalty weeks Value]) *-1);
 
('PO data'[Delay in weeks] * 'PO data'[Total Order Value] * [Penalty % per day/week Value]) *-1;
 
([Max penalty weeks Value]) *-1 * 'PO data'[Total Order Value] * [Penalty % per day/week Value]) ; 1)
1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

Power bi not support to create dynamic calculated column based on slicer/filter. Please use measure to instead, it can be dynamic changes based on filter selection.

Regards, 

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

Power bi not support to create dynamic calculated column based on slicer/filter. Please use measure to instead, it can be dynamic changes based on filter selection.

Regards, 

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi, @v-shex-msft 

 

Thank you for the response, this explains it. Could you provide any assistance on how to do the calculation if I simplify it like this:

 

I need a value for each 'purchase order' row:

 

'Total oder value (column)'  *  'Delay'(calculated from a column depending on a variable parameter)  *  Percentage (parameter)

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.