Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Pivot FetchXML SSRS Report crm 365 Online

(0) ShareShare
ReportReport
Posted on by 5

hello , could you please help me i need to do Pivot in a fetchXML Query for a SSRS Report (A chart) in CRM 365 online   

here is my fetch query :

<fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">
<entity name="contact">
<attribute name="fullname"/>
<attribute name="contactid"/>
<attribute name="NbrWeekEmail"/>
<attribute name="NBRDayEmail"/>
<attribute name="NBRMonthEmail"/>
<order descending="false" attribute="fullname"/>
<filter type="and">
<condition attribute="contactid" value="{DE376A94-26E6-E711-A82D-000D3AB4DB84}" uitype="contact" uiname="Lamyae j" operator="eq"/>
</filter>
</entity>
</fetch>

Query Result :

full name | NbrWeekEmail|NBRDayEmail| NBRMonthEmail

Lamyae  j | 2                         | 3                    | 4 

 I want to convert it to

NBR _Type             |     Value   |Activity 

NBRWeekEmail      |   2           | email

NBRDAYEmail        |   3           | email

NBRmONTHeMAIL|   4           | email

Inorder to display it in a bar chart  like this 

CHART.GIF

Any Idea for help please ?? 

*This post is locked for comments

  • Jamil Lamyae Profile Picture
    Jamil Lamyae 5 on at
    RE: Pivot FetchXML SSRS Report crm 365 Online

    Hi I finally tried your work around and its give me the following graph  the legend itsn't readable

    3036.Capture.GIF

  • Jamil Lamyae Profile Picture
    Jamil Lamyae 5 on at
    RE: Pivot FetchXML SSRS Report crm 365 Online

    Hi couldn't try your workaround because i can't to acess to my SSRS

    "error enable to connect......"

    i am working in crm 365 v9

    could you you help to handle it ?

  • Suggested answer
    jestuder Profile Picture
    jestuder 158 on at
    RE: Pivot FetchXML SSRS Report crm 365 Online

    In the Toolbox in Visual Studio drag a Data Bar onto your report.  Right click on the bar and click on convert to full graph.  Setup the graph with the data it needs to reference.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans