Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I use Import Data with Personal Gateway Scheduler to refresh data, but I don't want to have data of whole table, just subset of table based on conditions.
Example:
I have Country (Dimension) and InvoiceDetail (Fact) table. I just would like to import/refresh all invoice detail rows belong to UK.
One approach that I see is using database view in order to apply conditions and let powerbi connect to that view instead of table. It is not straight approach, though. That's why I would like know how Power Bi deals with this case in simpler way.
Power BI service does not provide an option to use parameters while refreshing data. You have to manage this in the data modeling layer. When a refresh is performed, complete dataset is refreshed. In your example, Country (Dimension) and InvoiceDetail (Fact) table is completely refreshed.
Now if you want only UK data in InvoiceDetail table refreshed and non UK data to be static, create two queries, one for UK and the other for non UK. Here make sure only UK data gets updated (using SQL parameters etc). Append both these queries to create InvoiceDetail query.
Hope this helps.
--nikil
Hi @nikil,
Thanks for the answer, what I meant is I don't want to have non UK data in powerbi file at beginning when importing as well as refreshing.
Please could you elaborate more how to create query to to refresh only UK data
Depending on the data source you have two options:
Once the desktop is published, on scheduled refresh it will import only UK data.
Thanks
--nikil
I have a case that my fact table is a weeklysnapshot table consisting of billion of records so powerbi desktop errors out (timeout expired) whle importing records so therefore want to get somehow subset of data for development purposes and the right filters are applied in power query i assume the problem would go away but how to get subset of data for the first time without using sql query as a source query?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
48 | |
31 | |
27 | |
27 | |
26 |
User | Count |
---|---|
61 | |
56 | |
35 | |
31 | |
28 |