Search code examples
reporting-servicesssrs-2008axaptassrs-2008-r2dynamics-ax-2012

Group rows on some colums and use SUM


I have a table defined in AX like follows:

enter image description here

I am trying to create an SSRS report using a query to create the DataSet and as Design - PrecisionDesign.

I got this until now:

enter image description here

with groupings :

enter image description here

I would like to visually replicate this query:

SELECT Country
    , City
    , FirstName
    , SUM(AGE)
FROM TABLESSRSGROUPING
GROUP BY Country, City, FirstName 

Resulting in:

enter image description here


Solution

  • You should only need to group once within the first Row Grouping.

    In the Group Properties - group on [Country] then ADD [City] then ADD [Name]

    Let me know if this helpsenter image description here