Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.