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: 
Not applicable

Issue with some different context:

Hi All,

I am new in Qlikview. I am facing an issue when I tried to calculate some deals in different context. Could you help me out? My requirement is something like that: I have 5 deals in month of June in 2013. Deals are created and closed by different different persons. Now I need to design a table where dimension would be Year, Month and Created by and measure value would be count of deal of created by and count of deal of closed by. The count of created by is showing fine but I can not define the count of deal for closed by.

This below is my raw data:

Header 1
Account Schedule NumberYearMonthCreated ByClosed By
100012013JuneMelissaDana
100022013JuneMelissaTammy
100032013JuneMelissaTammy
100042013JuneDanaTracy
100052013JuneMelissaRegina
100062013JuneMelissa Melissa

My requirement is like :

Header 1
YearMonthCreated By Total Created #Total Closed#
2013JuneMelissa51
2013JuneDana11
2013JuneTammy02
2013JuneTracy01
2013JuneRegina01
Total

66

Pls help me out. Thanks in advance.

3 Replies
ariel_klien
Specialist
Specialist

Hi,

Maybe you need to change your data.

see the ex. i attached.

BR

Ariel

Not applicable
Author

Hi Ariel,

I could not find your attachment. Could you pls check from your end.

Thanks,

Goirik

ariel_klien
Specialist
Specialist

this is my output:

Pic.jpg

i made 2 new fields (person, action)

LOAD * INLINE [

    Account Schedule Number, Year, Month, person, Action

    10001, 2013, June, Melissa, Create

    10002, 2013, June, Melissa, Create

    10003, 2013, June, Melissa,Create

    10004, 2013, June, Dana, Create

    10005, 2013, June, Melissa, Create

    10006, 2013, June, Melissa, Create

    10001, 2013, June, Dana , Close

    10002, 2013, June, Tammy, Close

    10003, 2013, June, Tammy, Close

    10004, 2013, June, Tracy, Close

    10005, 2013, June, Regina, Close

    10006, 2013, June, Melissa, Close

];

my expressions: Create : count({<Action={'Create'}>} person)

                         Close: count({<Action={'Close'}>} person)

BR

Ariel