cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 42 members 961 guests
Please welcome our newest community members: