Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
rajkumart
Partner - Contributor III
Partner - Contributor III

Aggregating at Dimension level which is not present in Staright Table.

Hi Dear,

I wanted to aggregate the measure at the dimension which is not present in the table.

EX:

In the straight Table, I have Cust NAme and Cust ID and Measure is the sum(Sales) I want to Aggregate the values at Net Due date Dimension level.

1 Solution

Accepted Solutions
rajkumart
Partner - Contributor III
Partner - Contributor III
Author

This way I got a solution

sum({<[G/L Account]={'0000121240','0000121108'},[Clearing Date]={'NoClearingDate'}>}

if(date([Net Due Date])-[Report Creation date]>=-15 and date([Net Due Date])-[Report Creation date]<0,

[Amount - GC]))

Screenshot (195).png

View solution in original post

6 Replies
sunny_talwar
MVP
MVP

May be use Aggr() function.... but with just Sum(Sales) as expression... what difference will it make it you aggregate at additional dimensions?

rajkumart
Partner - Contributor III
Partner - Contributor III
Author

Thank you for the response Sunny,

Just as a reference i have written as Sum(Sales). Actually its there set analysis.

rajkumart
Partner - Contributor III
Partner - Contributor III
Author

Expression looks like this

if((Date([Net Due Date]))-[Report Creation date]>=-15,

if((Date([Net Due Date]))-[Report Creation date]<0,

sum({<[G/L Account]={'0000121240','0000121108'},[Clearing Date]={'NoClearingDate'}>}[Amount - GC]),'FALSE'

),'FALSE')

Below is the screenshot for the Tabel and i wanted to aggregate at Net Due date level. Screenshot (191).png

sunny_talwar
MVP
MVP

May be do this

Aggr(

if((Date([Net Due Date]))-[Report Creation date]>=-15,

if((Date([Net Due Date]))-[Report Creation date]<0,

sum({<[G/L Account]={'0000121240','0000121108'},[Clearing Date]={'NoClearingDate'}>}[Amount - GC]),'FALSE'

),'FALSE')

,Dimension1, Dimension2, Dimension3, ...)

rajkumart
Partner - Contributor III
Partner - Contributor III
Author

I have tried the same before I post this discussion. But i dint get

rajkumart
Partner - Contributor III
Partner - Contributor III
Author

This way I got a solution

sum({<[G/L Account]={'0000121240','0000121108'},[Clearing Date]={'NoClearingDate'}>}

if(date([Net Due Date])-[Report Creation date]>=-15 and date([Net Due Date])-[Report Creation date]<0,

[Amount - GC]))

Screenshot (195).png