Forum Discussion
FIlter data on retrieve
- Anonymous4 years ago
Hi stan_w_gifford ,
I think Dataverse supports SQL query. You can add filter by SQL query like select ... from... in Advanced in Power Query Editor.
Here are some similar threads for your reference:
Pre-Filtering Data before Importing
Filetring my table before importing in PowerBi
Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I did find out a partial solution using TDS.
For example if I just want salesorders which were created after 2021-01-01, I found that using the current version of PBI Desktop, the sequence is......
1. CLick Dataverse
2. Select environment
3. Select Salesorder - Then hit transform data
4. Then select Advanced editor
Replace EVERYTHING that is presented with something like
let Source = CommonDataService.Database("yourenvironment.crm6.dynamics.com"),
DataverseSQL=Value.NativeQuery(Source,"Select * from salesorder where createdon > '2021-01-01'",null,[EnableFolding=true])
in
DataverseSQL
STan
Hi Stan,
Did you mange to make this work?
when I'm working with dataverse my pipeline is usually Datavers -> PowerBI Dataflow -> PowerBI
Because i noticed that the basice "cleaning" like column selection, and let's say a status filtering, are faster in the dataflow (furthermore, like this we are not querying the dataverse with 100 reports 😄 )
I'm also facing your same issue, that it would be good to have some more effective folding method, and not so headscratching as using the XMLfetch tool to pre-filter the dataverse query.
Unfortunately what you wrote here above, is not working for me (tested on the standard account entity/table)
😕
Regards,
Oliver
- stan_w_gifford3 years agoHelper I
Hi,
I didn't go much further on this - I found that using TDS was sufficient for my purposes.
PowerBI Data Flow is a new one on me - sounds like some research may be warranted.
All the best
Stan