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 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
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 |
---|---|
107 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |