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
user023
Frequent Visitor

Need Opinion Regarding Parameter

I need opinion on better method to do this. 

I have transactional data, which is very large stored in SQL. So we set only store for laterst 30days.

Then I load the data into SQL and do some calculations using DAX. (not import only use stored procedure)

The report consist of multiple dynamic filtration (eg startdate, enddate, process name etc) which using DAX no issue to show the calculations. 

However, user request to have all time data inside of report which I dont think I will  load the whole transaction even into SQL nor Power BI. 

So here I need to think another approach. 

I need to re-do calculations inside the SQL so pass only calculated field however when doing this dynamic filtration will not works. 

Example: 

Data from SQL

user023_2-1701944798999.png

 

 

Calculation in Power BI

Based on selected date and process able to take how many total machine and how many days required etc.

 

user023_3-1701944909757.png

 

If calculation in SQL 

All need to calculated by day, by process. 

 

But then when I pass to power BI if user filter multiple date need to recount with another set of formula which I feel redundant to be done. 

 

So my question what to do if I want

1. To have my data available all the time? Any feature able to save from power BI data to SQL? 

2. If not what approach should I take? 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @user023 

If you want to  have your data available all the time, you can consider to change your data mode to direct query, it allows you to make the change to the data source without import your data to Power BI again, the direct query is connected to the data source directly, it will put the change to Power BI automatically , you can refer to the following link.

https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about#directquery-use-ca...

What Is DirectQuery Mode in Power BI? - ONLC

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @user023 

If you want to  have your data available all the time, you can consider to change your data mode to direct query, it allows you to make the change to the data source without import your data to Power BI again, the direct query is connected to the data source directly, it will put the change to Power BI automatically , you can refer to the following link.

https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about#directquery-use-ca...

What Is DirectQuery Mode in Power BI? - ONLC

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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.