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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
nikhilgarg
Specialist II
Specialist II

Data inconsistency

Hey,

I have a qstn.

I have following data:

Col1     Col2    Col3   Col4   Col5  Total 

212       ABC    0       12        0        12

212       ABC    0       11        0        11

212       ABC    0       0         9        9

212       ABC    64      0        0        64




I want all these multiple entries to come in a single line like:


Col1     Col2    Col3   Col4   Col5  Total 

212       ABC    64      23        9         96




How can i obtain this??


thanks

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

=rank(total count({<Source = {'Accepted', 'ClientAccept', 'DealerAccept'}>}Source)/count({<Source = {'Accepted', 'ClientAccept', 'DealerAccept', 'Rejected', 'Timedout'}>}Source),0,1)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

15 Replies
PrashantSangle

Hi,

What is your expression for Col3,Col4,Col5,Total???

Use Sum(Col3), Sum(Col4), Sum(Col5)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
robert_mika
Master III
Master III

t1:

load * Inline

[ Col1     ,Col2  ,  Col3,   Col4 ,  Col5,  Total

212       ,ABC ,   0 ,      12,        0,        12

212       ,ABC ,   0 ,      11 ,       0 ,       11

212       ,ABC ,   0  ,     0   ,      9  ,      9

212       ,ABC  ,  64,      0     ,   0     ,   64

]

;

t2:

LOAD

Col1 as col1,

Col2 as col2,

SUM(Col3) as col3,

Sum(Col4) as col4,

Sum(Col5) as col5,

Sum(Total) as total

Resident t1

Group by Col1,Col2;

drop Table t1;

12-Jun-15 7-32-12 AM.jpg

nikhilgarg
Specialist II
Specialist II
Author

Hey ,

Thanks but col3, col4, col5 are my expressions and not dimensions so cannot

use it at script level.

PrashantSangle

Hi,

What is the expression???

and do you have any extra dimension than only col1,col2

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
robert_mika
Master III
Master III

SO as max suggested use your current columns  with SUM()

12-Jun-15 8-04-37 AM.jpg

nikhilgarg
Specialist II
Specialist II
Author

Hey Thanks but i want to show only State = 'Accepted'. How can i acheive this?

robert_mika
Master III
Master III

Could post your app?

nikhilgarg
Specialist II
Specialist II
Author

PFA..

PrashantSangle

What is your expected Output in provided example????

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂