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: 
samuel_brierley
Creator
Creator

using a left in set analysis

Can anyone see a problem with the below formula?

sum{$<left(OverHeads,7) = {"SICKNESS"} >} [Total Hours])

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

You can´t use a function to modify a field name.

Possible workarounds:

1) Create a field at script level left(OverHeads,7) as filterfield

2) Using "if" as Kiran proposes

3) Using "*" modifier as Massimo proposes

View solution in original post

5 Replies
maxgro
MVP
MVP

try this

=sum({$ <OverHeads={"SICKNESS*"}>} [Total Hours])

SICKNESS length is 8

kiranmanoharrode
Creator III
Creator III

Try this...........

=if(left(OverHeads,7) = 'SICKNESS',Sum([Total Hours]))

nizamsha
Specialist II
Specialist II

if(

WildMatch(Subtitle,'ABC*'),Left(Subtitle,5),sum(value))

Clever_Anjos
Employee
Employee

You can´t use a function to modify a field name.

Possible workarounds:

1) Create a field at script level left(OverHeads,7) as filterfield

2) Using "if" as Kiran proposes

3) Using "*" modifier as Massimo proposes

samuel_brierley
Creator
Creator
Author

thank you thats got it