Forum Discussion

h2022's avatar
h2022
Frequent Visitor
4 years ago
Solved

Best Practice for pulling in data?

I work for a manufacturing company, and most of the data I use is stored in a sql server database. I reguluarly write SQL queries against this database to extract information that people want to know...
  • DataInsights's avatar
    DataInsights
    4 years ago

    You can put that aggregate query in a DirectQuery table (custom SQL). Think of DirectQuery as a pointer to the underlying table; data isn't stored in the pbix, as it is with Import mode. You give up some functionality with DirectQuery, but it may not affect your specific requirements. Dynamic M Query Parameters make your queries interactive by allowing users to pass parameters via slicers or filters. This allows you to write generic SQL and let users narrow down result sets for their particular needs.