Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Formula Question

I am having issue with a formula not returning the expected value.

Here is my formula:

=if(Status <> 'Discarded', (sum({<Scenario={"2015 LBE"}>}(Amount * Division_Rate)/1000)),0).

The returned value is not excluding the 'Discarded' values from the sum.

1 Solution

Accepted Solutions
sunny_talwar

Try if this works:

Sum({<Scenario = {'2015 LBE'}, Status = e({<Status = {'Discarded'}>})>} (Amount * Divison_Rate)/1000)

Best,

S

View solution in original post

6 Replies
sunny_talwar

Try if this works:

Sum({<Scenario = {'2015 LBE'}, Status = e({<Status = {'Discarded'}>})>} (Amount * Divison_Rate)/1000)

Best,

S

Not applicable
Author

Hi Scott

Please check this formula.

sum({$<Senario={'2015LBE'}>-<Status={'Discarded'}>}Amount*Divison_Rate)/1000.

Regards

Harshana

renjithpl
Specialist
Specialist

Try this

=if(Status <> 'Discarded', (sum({<Scenario={'2015 LBE'}>}(Amount *Divison_Rate)/1000)), 0)

PrashantSangle

Hi,

Try like

sum({<Scenario={"2015 LBE"},Status -={"Discarded"}>}(Amount * Division_Rate)/1000)

It will give you red error line after -= but it will work for you

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=sum({<Scenario={"2015 LBE"}, Status -={'Discarded'}>}(Amount * Division_Rate)/1000)


Note: Qlikview will show the above expression as error but it works.


Regards,

Jagan.

Not applicable
Author

Thank you everyone this worked.