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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

expression query

hi all,

i have 2 dimensions and 1 expression:

Date     Client     Value

T          abc          10

T-1       abc          5

T          xyz          10

while writting expression

( sum({<Date = T>}[Value]) / sum({<Date = T-1>}[Value] ) -1 as Change

i get output as

Client     Change

abc          50%

xyz          -

i want to show for xyz change as 100%

please advise

thanks

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try: alt(( sum({<Date = T>}[Value]) / sum({<Date = T-1>}[Value] ) -1,1)


talk is cheap, supply exceeds demand
Not applicable
Author

thanks that is working for above scenario

now if for client xyz T value is blank and T-1 is 10

then also i want to show change as -100%

how to go about

Not applicable
Author

any updates on the above?