Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show all non-unique dimensions with Sum Expression

Hello guys, I have a problem.

This is my Data Table

SeqDescriptionAmount
203Barton414
204Horton200
205Milton300
206Horton134
204Horton18
205Milton28

Then I want it shows as:

DescriptionSum(Amount)
Barton414
Horton218
Milton528
Horton134

Without showing the Seq Column.

I know it's weird to do this, but I need it to shows up like this.

I appreciate any kind of help, thanks.

2 Replies
Gysbert_Wassenaar

In the UI you can create a straight table with simply Description as dimension and sum(Amount) as expression.

In the script you can create that summary table like this:

DataTable:

LOAD Seq, Description, Amount

FROM ...source...;

Summary:

LOAD Description, sum(Amount) as SumOfAmount

Resident DataTable

GROUP BY Description;


talk is cheap, supply exceeds demand
rubenmarin

Hi Daniel, You can make a conditional dimension like: =Dual(Description, Seq)