Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Is it possible, and how, write in query sql
SELECT ....
CASE
WHEN @Visualizzazione ='D' THEN Sa
ELSE ''
END Sala
FROM ...
Thanks
Solved! Go to Solution.
Hi @RiccardoBefore ,
Do you want to use the 'what if' parameter in the sql query?
It's impossible to achieve the idea in current version(2.83.5894.281 64-bit (July 2020)).
But you can use 'query' parameter to create dynamic data sources.
Dynamic Data Masking and Query Parameters
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@RiccardoBefore , do you mean source query.
In advance option you can query of choice
Also, refer :
https://community.powerbi.com/t5/Desktop/parameterize-connection/m-p/205900#M90712
https://www.biinsight.com/power-bi-desktop-query-parameters-part-1/
https://radacad.com/change-the-source-of-power-bi-datasets-dynamically-using-power-query-parameters
Thank you, @amitchandak .
I would have preferred a solution similar to that of Reporting Services.
This use of parameters is not usable by customers.
Thanks.
Riccardo
Hi @RiccardoBefore ,
Do you want to use the 'what if' parameter in the sql query?
It's impossible to achieve the idea in current version(2.83.5894.281 64-bit (July 2020)).
But you can use 'query' parameter to create dynamic data sources.
Dynamic Data Masking and Query Parameters
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |