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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

My SET expression refuse to display 1st row of my data ?

Hi All

I have a data structure , which have a field name = ACC_NAME , when i select this 1. REVENUE , from the list box i confirm i have value , and from field name = Reporting Code , it shown

00001 highlighted.

when i create a Table , My expression is sum(Amount) , it does display 1 REVENUE amount on Table (1).

But when my expression change to SET as below :-

(

money(

if([Exec P&L Level] = 's','',

sum({$<year = {$(=max(year)-0)}

, month = {"<=$(=max({<year={$(=max(year))}>} month))"}>} Amount)/1000

)

, $(vCurrencyFormatK))

)

May i know , how to make the 1 REVENUE appear when using above SET expression ?

Paul

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi the 1 Revenue isn't displayed because of the if stement yout set analysis is ok

it's actually quite simple 1 Revenue has 's' as the value in [Exec P&L Level] this is why it's not displayed

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi the 1 Revenue isn't displayed because of the if stement yout set analysis is ok

it's actually quite simple 1 Revenue has 's' as the value in [Exec P&L Level] this is why it's not displayed

paulyeo11
Master
Master
Author

Hi liron

It took me quite a while to figure out the expression cause the problem. Once I remove it . It work fine. Thank.

You must be very good in script. As now I still not understand why ?