The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I would like to only allow a certain amount of data to be queried into PowerBI. I don't want to load all of the data then filter. Can this be achieved through parameters or SQL? I have done it before, but not sure exactly how. Any suggestions would be great! Thank you!
Solved! Go to Solution.
Hi @Anonymous,
Any date fields stored in your data tables? If that is the case, you can turn on the 'advance' option and write t-sql query to filter on that field based on the max value from your table values.
Power Query SQL Server connector | Microsoft Docs
Regards,
Xiaoxin Sheng
I used SQL on the source to only allow the first 30 days. Thanks for your help!
I used SQL on the source to only allow the first 30 days. Thanks for your help!
Hi @Anonymous ,
I think you can use query parameters in Power BI to achieve this.
Thanks,
Pragati
Thank you! This blog only shows how to show the last X amount of rows. How do I show only the last 30 days? I want to query by date. Thank you again 🙂
Hi @Anonymous,
Any date fields stored in your data tables? If that is the case, you can turn on the 'advance' option and write t-sql query to filter on that field based on the max value from your table values.
Power Query SQL Server connector | Microsoft Docs
Regards,
Xiaoxin Sheng