Forum Discussion
need help with direct query, visualization
I am working on real time data and i need to use a direct query, do you sugest that i write a sql code and perform an outer join there and then perform visulisations on power bi?
Push back all the processing to the source( direct query relies on server performance as well, so make sure its sufficient enough to cater your requirements ), use a stored procedure to calculate in server side or use a view.
Direct query only to be used when you need real time analytics and large data volume where local RAM cannot handle. Use import mode and see how it goes.
Thanks
- Anonymous7 years agoNot applicable
Anonymous ,
I have one more question, right now am using a sql code – where am bringing in all the order numbers(the reason why I have about a billion rows), in- direct query – can I customize the sql code? I can use the sql query to one particular order number, but I need to be able to look for all order numbers, instead of going to the advanced editor and changing the order number, is there any other way I can work on this? If so how?
- Anonymous7 years agoNot applicable
Anonymous ,
I have one more question, right now am using a SQL code – where am bringing in all the order numbers(the reason why I have about a billion rows), in a direct query – can I customize the SQL code? I can use the SQL query to one particular order number, but I need to be able to look for all order numbers, instead of going to the advanced editor and changing the order number, is there any other way I can work on this? If so how?
- Anonymous7 years agoNot applicable
Anonymous
Hi,
Try to aggregate the data that you're bringing into Power BI as much as possible by using filterations. You can customise the SQL code in direct query but Its not best practice. If you have 10 work orders and you need to report only 1 then bring only one.
- Push calculated columns and measures to the source where possible – the closer they are to the source, the higher the likelihood of performance.
- Optimize! Understand the execution plans for your queries, add indices for commonly filtered columns, etc.
If you have billion records to be imported then direct query is the only option but make sure your server performance is good without any Network latency.
If you're more specific about what you're trying to achieve or visualisation that you're trying to do would be helpful.
Finding a match can also be achieved via Lookup Dax function.