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: 
priyarane
Specialist
Specialist

HardCode Value

Hi Community,

I have table like below. And requirement is if Dim=C then I need sum(Val1) and I have writtern expression like below but problem is if I select any Dim value then it is disappearing but as per my requirement it shouldn't be disappear. so If I select A then C value is 100 and for B 200 and for C 300.

LOAD * INLINE [
Dim, Val, Val1
A, 10, 100
B, 20, 200
C
]
;

if(Dim = 'C',
$(=sum(Val1)),
sum(Val)
)

-Priya

15 Replies
priyarane
Specialist
Specialist
Author

it is already tried and it is not working

zhadrakas
Specialist II
Specialist II

that should work. can you share a sample qvw?

balar025
Creator III
Creator III

PLease find application with same set of data.

priyarane
Specialist
Specialist
Author

C dis.PNGHi Thanks for the effort, if I select A then C is disappearing, it should not happen

passionate
Specialist
Specialist

Hi Priya,

Please find attached solution.

Regards,

Pankaj

balar025
Creator III
Creator III

Please find new app for solution.