Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Dear Com,
i could use your help.
I've built a tool to calculate, analyze and visualize time needed for several tasks.
A SQL database is serving as a source for data. Simplified it looks like this:
| Task | TimeStamp |
| Start_Task1 | dd.mm.yyyy hh:mm:ss |
| End_Task1 | dd.mm.yyyy hh:mm:ss |
| Start_Task2 | dd.mm.yyyy hh:mm:ss |
| ... | ... |
I dont want to load the whole database into PBI, so i plan to use an SQL command to define the time range for my TimeStamps, which are then loaded into PBI.
Is there a way to manipulate this sql command in my dashboard/visualization area?
The goal is to set the time range for the queried data from my sql database in the dashboard/visualization are.
So that my colleagues dont have to change the sql command in the query editor.
Thank you for your help!
Kind regards
Philipp
Solved! Go to Solution.
Hello @PhilippS29 ,
You cannot operate directly on the dashboard, but you can get data through parameter input in the query editor.
https://community.powerbi.com/t5/Desktop/How-do-I-pass-parameters-to-my-SQL-statement/td-p/118716
https://community.powerbi.com/t5/Desktop/Power-BI-parameter-for-SQL-Query/td-p/502628
If you want to get data through the dashboard, we recommend that you use direct query mode instead of import mode.
In direct query mode, when you interact with the dashboard, you will send query statements to the database in real time and return data, but there are some limitations in this mode.
Best regards
Liang
If this post helps, then consider Accept it as the solution to help other members find it faster.
Hello @PhilippS29 ,
You cannot operate directly on the dashboard, but you can get data through parameter input in the query editor.
https://community.powerbi.com/t5/Desktop/How-do-I-pass-parameters-to-my-SQL-statement/td-p/118716
https://community.powerbi.com/t5/Desktop/Power-BI-parameter-for-SQL-Query/td-p/502628
If you want to get data through the dashboard, we recommend that you use direct query mode instead of import mode.
In direct query mode, when you interact with the dashboard, you will send query statements to the database in real time and return data, but there are some limitations in this mode.
Best regards
Liang
If this post helps, then consider Accept it as the solution to help other members find it faster.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |