cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VilleNummisalo Frequent Visitor
Frequent Visitor

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

Accepted Solutions
Community Support Team
Community Support Team

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

Hi @VilleNummisalo ,

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 Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

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

Hi @VilleNummisalo ,

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 Sheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.



For learning resources/Release notes, please visit: | |

View solution in original post

VilleNummisalo Frequent Visitor
Frequent Visitor

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

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
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)