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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
capko
Helper II
Helper II

Problem with parameter

Hello,

 

I've created a parameter (first time) that it doesn't seem to work.

 

The parameter is associated to a slicer which can go from 1 to 5 in steps of 1.

 

Parameter1.PNG

 

I've created a test table with a column called "Test" and I'm trying to create another column in order to multiply the value from "Test" by the parameter value but nothing shows up...

 

Parameter2.PNG

 

Does anyone know why ?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @capko 

Thanks for @rajendraongole1 reply. You can refer to the following explanation.

The Parameter table is generated by GENERATESERIES, which creates a table with a single column of values ranging from 1 to 5. However, when you use SELECTEDVALUE(Parameter[Parameter]) in a calculated column, Power BI does not know which specific value from the Parameter table to use for each row in the calculated column because calculated columns are evaluated for every row in the table.

To use a parameter in a calculated column, you would typically create a measure, as measures can change based on context (such as filters or slicers), whereas calculated columns are static and cannot be context-aware in the same way.

So, the environment where Numerical Parameter is most applicable is Measure rather than Calculate columns.

vyaningymsft_0-1718005448454.pngvyaningymsft_1-1718005470270.png

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, @capko 

Thanks for @rajendraongole1 reply. You can refer to the following explanation.

The Parameter table is generated by GENERATESERIES, which creates a table with a single column of values ranging from 1 to 5. However, when you use SELECTEDVALUE(Parameter[Parameter]) in a calculated column, Power BI does not know which specific value from the Parameter table to use for each row in the calculated column because calculated columns are evaluated for every row in the table.

To use a parameter in a calculated column, you would typically create a measure, as measures can change based on context (such as filters or slicers), whereas calculated columns are static and cannot be context-aware in the same way.

So, the environment where Numerical Parameter is most applicable is Measure rather than Calculate columns.

vyaningymsft_0-1718005448454.pngvyaningymsft_1-1718005470270.png

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

capko
Helper II
Helper II

It doesn't work for me... I think the problem is that I have the Parameter and the table I'm trying to use separated. How did you put the parameter in the same group as the table ?

 Parameter3.PNG

rajendraongole1
Super User
Super User

Hi @capko - In your parameter calculation , Instead of using the [Parameter value] highlighted with Red color. you have you use Parameter highlighted with Green color as below. it works with your [test] measure. check it and let know.

 

rajendraongole1_0-1717954798917.png

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.