Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Øystein_Kolsrud
Employee
Employee

Expressing measure the refers to values from different row of table

Hi! I have the following table:

Key
Entry
0x
1x
2x
1y
2y

Now I want to create a visualization that contains the number of entries per Index as well as the number of entries for the previous index, so the result should look like this:

KeyEntries for Key
Entries for previous Key
010
121
222

The measure for the first measure I could easily define like this:

COUNT(ENTRY)

But I am having a very hard time expressing the second one. How would I express that measure?

16 Replies
sunny_talwar

This might have worked because the data was already sorted, try this and i think it won't work:

Load RecNo() as recno,* Inline [

Key ,Entry

0, x

2, x

1, x

1, y

2, y

];

OmarBenSalem

You were right, actually, it's numericcount:

Aggr(Above(Count(Entry)), (Key,(NumericCount)))

Thank you MVP !

sunny_talwar

Not sure about NumericCount, but NUMERIC is def. there  (https://help.qlik.com/en-US/sense/3.1/Subsystems/Hub/Content/ChartFunctions/aggr.htm)

Capture.PNG

P.S. you can call me Sunny my friend

Øystein_Kolsrud
Employee
Employee
Author

Ah, I didn't read your "Aggr" there first. That did the trick! Thanks a lot!

So for the record, I ended up using this expression:

Aggr(Above(Count(Entry)),  Key)

sunny_talwar

Awesome

OmarBenSalem

No numeric is showing to me:

Capture.PNG

Another thing Sunny, (I like to call you mvp by the way, coz you're so dedicated to help people in need, and I really appreciate it)

So, as I were saying, are familiar with security rules (qlik sense server)?

sunny_talwar

May be expression editor doesn't show it, I am sure NUMERIC will work. On the other hand, I am not sure if NUMERICCOUNT will work. Is it working for you? May be it is undocumented.

I have no idea about the security rules within Qlik Sense server