Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have an issue regarding 'direct query' vs 'import'. I am retrieving data from SQL and creating data tables/visualizations with time parameters, more specifically 'networkdays'. In order to create 'networkdays' in PowerBi I believe I need to use a calendar table from another data source such as excel. I would like to make my data/visualizations live so that I do not need to re-create them each time.
1) Is it possible to operate in direct query mode and link another table such as a calendar to create 'networkdays'?
or
2) Is it possible to operate in Import mode and have my data so that I don't need to redownload from SQL and remake measures, columns, charts, graphs etc. each time I want to run an updated report?
Thanks in advance!
Solved! Go to Solution.
Hi @Anonymous,
For the first issue, based on my research, I am afraid you could not link another table from the another data source, all tables you want to link must come from a single database. You can create a calendar table in the same SQL database and get data form this calendar table via DirectQuery.
Reference: https://docs.microsoft.com/en-us/power-bi/desktop-use-directquery#limitations-of-directquery
For the second issue, you could import the data from you SQL Server, but when you need the latest data, you need to update it manually in Power BI Desktop.
Regards,
Daniel He
1. you can try to create the view the the same DB
eg. DB1 have date table
DB2 have data tave
you can crate the view in DB2
Select * from DB1.dbo.date
2. I also have this problem.
Hi @Anonymous,
For the first issue, based on my research, I am afraid you could not link another table from the another data source, all tables you want to link must come from a single database. You can create a calendar table in the same SQL database and get data form this calendar table via DirectQuery.
Reference: https://docs.microsoft.com/en-us/power-bi/desktop-use-directquery#limitations-of-directquery
For the second issue, you could import the data from you SQL Server, but when you need the latest data, you need to update it manually in Power BI Desktop.
Regards,
Daniel He
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |