Forum Discussion
Importing SQL data to PBI
- 1 year ago
You can try this
SELECT *
FROM Alert
WHERE CusID IN (
SELECT DISTINCT CustomerID
FROM Applications
WHERE ProdType = 'A'
);Thanks,
PankajIf this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.
- 1 year ago
Hi luckygirl ,
pankajnamekar25 , proposed query efficiently filters the Alert table by selecting customers from the Applications table with ProdType = 'A', meeting your requirement. This method minimizes unnecessary data loading. To enhance performance, please ensure that CustomerID in Applications and CusID in Alert are indexed.
Let us know if further optimizations are needed.
If your issue is resolved, please mark it as the accepted solution. This will help others facing a similar issue.
The queries look good. Depending on your capacity the 1M rows will not be a huge deal. I would start by trying to load all of it and see how big your PBIX file is after you load the data. You might be surprised how much you can load in the model and still be efficient and fast. I find it best practice as well to load more than you may need and then filter it for visuals so you don't leave out something you may potentially need later.