Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Power BI embedded in CRM Dynamics (Filter)

(0) ShareShare
ReportReport
Posted on by 390

Hi!,

I have a field string in my CRM and use this field to filter my panel embedded in CRM. The problem is tha when the value of my filed is a number, does not work.

Example: 

My field has a value = *00001 that works fine becouse y have a character .

My filed has a value = 10001, this does not work becouse the value is a number. Curiosly if it has 000001 works fine...

<control id="filteredreport" classid="{ - - - - }">
<parameters>
<PowerBIGroupId>xxxxxxxxx</PowerBIGroupId>
<PowerBIReportId>xxxxxxxxxxxxxxx</PowerBIReportId>
<TileUrl>app.powerbi.com/.../TileUrl>
<PowerBIFilter>{"Filter":"[{\"$schema\":\"basic\",\"target\":{\"table\":\"Customer\",\"column\":\"CodCustomer\"},\"operator\":\"In\",\"values\":[$a],\"filterType\":1}]","Alias":{"$a": "new_myfilterstring" }}</PowerBIFilter>
</parameters>
</control>

Thanks for the help.
Best regards

  • Suggested answer
    RE: Power BI embedded in CRM Dynamics (Filter)

    Hi Enrique,

    Hope you are doing good.

    We have observed this when an entity field value is a valid number, the value is sent to Power BI as a number but Power BI is expecting strings.

    Solution : Update the "values" condition to surround the $a with escaped double quotes

    <PowerBIFilter>{"Filter":"[{\"$schema\":\"basic\",\"target\":{\"table\":\"Customer\",\"column\":\"CodCustomer\"},\"operator\":\"In\",\"values\":[\"$a\"],\"filterType\":1}]","Alias":{"$a": "new_myfilterstring" }}</PowerBIFilter>

    If this doesnt work, Then raise a support case and it will be taken care.

    Hope this helps,

    Mustufa F

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans