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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
paulwalker
Creator III
Creator III

Need Help

Hi Community,

This is my table...

load * Inline [

Cat, InRate, OutRate

A,200,200

A1,12,0

B,99,98

C,123,123

D,24,19

E,1200,100

];

If i have same Rates (InRate and OutRate), I want to Excluede...

I want to show only variance data.

Capture.JPG

Here my 3rd expression InRate-OutRate=0, I want exclue.

My output should be..

Catsum(InRate)sum(OutRate)Column(1)-Column(2)
A112012
B99981
D24195
E12001001100

Thanks in Advance....

8 Replies
Not applicable

Hi,

Create a calculated dimension as follows

=aggr(if(sum(InRate)-Sum(OutRate) <>0, Cat), Cat)

and then tick Suppress when NULL

Not applicable

Please find attached.

maheshkuttappa
Creator II
Creator II

A:

Load

*,

InRate-OutRate as InOutrate

where InRate-OutRate >0;

load * Inline [

Cat, InRate, OutRate

A,200,200

A1,12,0

B,99,98

C,123,123

D,24,19

E,1200,100

];

Catsum(InRate)sum(OutRate)Sum(InOutrate)
A112012
B99981
D24195
E12001001100
Not applicable

If you want to exclude those rows from loading to dashboard, may add following in the script:

Data:

NoConcatenate

load

*

Resident Temp

where InRate <> OutRate;

drop table Temp;

Otherwise, as shown above, it can be excluded in the object itself as well.

Not applicable

Indeed, this should be solved the problem.

paulwalker
Creator III
Creator III
Author

Hi Ram,

i have more than 10 dimensions..

any another way ???

settu_periasamy
Master III
Master III

You can try the expression like

expr 1:  if(sum(InRate)<>sum(OutRate),sum(InRate))

expr 2:  if(sum(InRate)<>sum(OutRate),sum(OutRate))

expr 3: Column(1)-Column(2)

Dimension:  Cat

sample attached:

susovan
Partner - Specialist
Partner - Specialist

Hi Paul,

Use this below expression as a calculative dimension,

Exp: Aggr(if((Sum(InRate-OutRate))=0,Null(),Cat),Cat)

20.JPG

Warm Regards,
Susovan