Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

BIDS Custom Reporting - Combining two datasets in to one report

$
0
0

Hello All, 

I was hoping someone someone might be able to provide some guidance. I am attempting to get to grips with SSRS reporting for Dynamics CRM 2011 online, but have already elapsed my limited knowledge.

Situation:


I started by building a report that shows a break down of all orders a client has, the order products in each order and the value of these products.


             Customer                             Order                      Product             Value          Total Value   
           Customer A             Order A                     Product A       10
                    Product B       20
         Product C       30
            60
                      Order B        Product D               15
        Product E       20
        Product F       25
                  60


This I can do no problem


However I want to add another level of detail to this report. My employer has a business model where customers  subscribe to particular products in an order. I would like to be show these in the report like so:


             Customer                             Order                      Product           Subscriber        Value          Total Value   
           Customer A             Order A                     Product A       10
  Subscriber A    
  Subscriber B
                    Product B       20
  Subscriber C
  Subscriber D      
                   
       Product C      30
  Subscriber E
60


It is at this stage I am getting confused......


1) If I try and return all the data I would require in a single FetchXML query, I get multiple duplicate rows that then distort the true value of the order (a duplicate of each order product for every subscription attached to the order).


2) If I have two FetchXML datasets, I do not know how I would combine them to replicate the structure above. The unique identifier would be a Concatenation of Order Name and Product, but I don't know if this helps me.


Can anyone provide some guidance about what would be best practice here:

- Is such a report easily possible? (It doesn't seem a particularly uncommon request)

- Should I be trying to work with one or two datasets?

Any advice would be greatly appreciated because, at the moment, I am really just going round in circles.

Thanks for any help!

Alex


Viewing all articles
Browse latest Browse all 79901

Trending Articles