Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Pivot FetchXML SSRS Report

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans