Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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

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?