This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi
i have a sql statement containing paramater.
@placed=<3
How can I integrate this into PowerBI so a user can select different parameters? I.e. alter the =<3
User Screen would like :
When this number (button) is clicked, it would run the sql query (direct query). That would be enterted in the parameters query and return the specific counts. I can do this in Excel but struggling in PowerBI.
Appreciate the guidance
Thanks
Anthony
Solved! Go to Solution.
@Anonymous
You can create a what if parameter.
Use what-if parameters to visualize variables - Power BI | Microsoft Docs
Then add add the parameter to your measures as an additional filter, for example.
You can selected any number as the filter conditional.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous
You can create a what if parameter.
Use what-if parameters to visualize variables - Power BI | Microsoft Docs
Then add add the parameter to your measures as an additional filter, for example.
You can selected any number as the filter conditional.
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
@Anonymous , see if Dynamic M paaremeter can help
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters
For button you can use slicer with horizontal orientation
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 23 | |
| 23 |