Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Team,
I am getting an error when connecting Dynamic CRM to Power BI due to the large data size. so could you please advise to filter the data before importing it to Power BI.
Get data ---> Blank query ---> Advanced Editor ---> paste below query
Source = CommonDataService.Database("xxxxxxx.crm6.dynamics.com", [CreateNavigationProperties=false]),
dbo_opportunity = Source{[Schema="dbo",Item="opportunity"]}[Data]
in
dbo_opportunityI need to filter based on 'Estimated Close Date' greater than or equal to January 1, 2022, and filter a few required columns from the CRM, such as Opportunity ID, Owner, Account, Topic, Pipeline, Total Revenue, Opportunity Type, etc. Could someone please provide a filter query and advise me on how to make it easy?
Please provide your feedback; it is greatly appreciated.
Thanks,
Afrath
Solved! Go to Solution.
I'd try this
let
Source = CommonDataService.Database("xxxxxxx.crm6.dynamics.com", [CreateNavigationProperties=false]),
dbo_opportunity = Source{[Schema="dbo",Item="opportunity"]}[Data],
FilteredRows = Table.SelectRows(dbo_opportunity, each [EstimatedCloseDate] >= #date(2022, 1, 1)),
SelectColumns = Table.SelectColumns(FilteredRows, {"OpportunityID", "Owner", "Account", "Topic", "Pipeline", "TotalRevenue", "OpportunityType"}),
RenamedColumns = Table.RenameColumns(SelectColumns, {"OpportunityID", "Opportunity ID", "Owner", "Account", "Topic", "Pipeline", "TotalRevenue", "OpportunityType"})
in
RenamedColumns
I'd try this
let
Source = CommonDataService.Database("xxxxxxx.crm6.dynamics.com", [CreateNavigationProperties=false]),
dbo_opportunity = Source{[Schema="dbo",Item="opportunity"]}[Data],
FilteredRows = Table.SelectRows(dbo_opportunity, each [EstimatedCloseDate] >= #date(2022, 1, 1)),
SelectColumns = Table.SelectColumns(FilteredRows, {"OpportunityID", "Owner", "Account", "Topic", "Pipeline", "TotalRevenue", "OpportunityType"}),
RenamedColumns = Table.RenameColumns(SelectColumns, {"OpportunityID", "Opportunity ID", "Owner", "Account", "Topic", "Pipeline", "TotalRevenue", "OpportunityType"})
in
RenamedColumns
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 10 | |
| 6 | |
| 5 | |
| 5 | |
| 3 |