Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello @Everyone
I am looking to add a numeric input parameter in PBI. It is does not belong to any dataset as well as there is no numeric range for it. It should be just a simple input parameter based on it's value need to apply the summation/multiply to get the result.
Solved! Go to Solution.
Hi,
Here's a step-by-step guide to help you set it up:
Create a What-If Parameter:
Use the Parameter in Calculations:
Result = SUM('YourTable'[YourColumn]) * SELECTEDVALUE('Input Parameter'[Input Parameter])
Add the Slicer to Your Report:
Proud to be a Super User! | |
Hi @hemantprajapati ,
Whatever @Anonymous suggested for data input into the measure can be done from Power BI Desktop only.
I would go with what @Kaviraj11 suggested. WhatifParameters would be the right thing to go.
If you are worried about limiting to a certain number, then you should probably give a higher number that is likely not limiting the user from what they need. You can also swith off the slider to give them the feel of a input box. There is also a text box slicer in the custom visual that you can use for this purpose. This Text Box slicer also needs a column of values at the backend
However, be aware, what if parameters will create a calculated table at the backend which could be very big if you are going to give an extremely big number as your MAX value.
The Below are the screeshots
slicer wIth slider swithed off
Text Box slicer custom visual
Regards,
Hi,
Here's a step-by-step guide to help you set it up:
Create a What-If Parameter:
Use the Parameter in Calculations:
Result = SUM('YourTable'[YourColumn]) * SELECTEDVALUE('Input Parameter'[Input Parameter])
Add the Slicer to Your Report:
Proud to be a Super User! | |
Thanks Kaviraj for quick response. I have implemented the steps. However, I do not have any range. Is there a way to avoid the range ?
Thanks for the reply from Kaviraj11 , please allow me to provide another insight:
Hi, @hemantprajapati
If the parameter does not meet your needs, I suggest directly creating a measure as a parameter:
1.Regarding the requirement for no numerical range, once you input the number, it will display a fixed value regardless of where it is placed in the visualisation object.
2.For the requirement of not belonging to any dataset, you can achieve this by creating a calculation group and then creating a measure within the calculation group. This perfectly meets the requirement, doesn't it?
3.You need to be able to directly reference multiplication and division, which can be achieved by the measure itself.
4.For more details, please refer to:
Calculation groups in Analysis Services tabular models | Microsoft Learn
Tutorial: Create your own measures in Power BI Desktop - Power BI | Microsoft Learn
5.Calculation tables are also a good option.
num = DATATABLE(
"vlaue", INTEGER,
{
{1}
}
)
Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thanks, Leroy. In point 1, how user can enter input value to a measure ? How to create calculation group if there is no Dataset ?
Hi, @hemantprajapati
Thank you for your response and for promptly providing feedback on the issue you encountered.
1.Regarding your first question, "How can a user enter an input value to a measure?":
You can directly click on the measure to enter the page and make modifications.
2.Regarding your second question, "How to create a calculation group if there is no dataset?":
If by "dataset" you mean creating a calculation group before importing data, you can switch to the model view.
On the right side, you will find the semantic model column. Please refer to the position shown in the image below for more details:
Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thnx Leroy for the details. However, I am still not clear with answer for the question 1. Again the question is " How can a user enter an input value to a measure from PBI service ? "
Hi @hemantprajapati ,
Whatever @Anonymous suggested for data input into the measure can be done from Power BI Desktop only.
I would go with what @Kaviraj11 suggested. WhatifParameters would be the right thing to go.
If you are worried about limiting to a certain number, then you should probably give a higher number that is likely not limiting the user from what they need. You can also swith off the slider to give them the feel of a input box. There is also a text box slicer in the custom visual that you can use for this purpose. This Text Box slicer also needs a column of values at the backend
However, be aware, what if parameters will create a calculated table at the backend which could be very big if you are going to give an extremely big number as your MAX value.
The Below are the screeshots
slicer wIth slider swithed off
Text Box slicer custom visual
Regards,
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 38 | |
| 31 | |
| 27 | |
| 26 |