Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Sam_1985
Contributor II
Contributor II

Expression Error

=if({<LPO_AMOUNT-Sum(AMOUNT)>='0.1'>}(LPO_AMOUNT-sum(AMOUNT)))

 

 

this experssion not working any idea how to coun( lpo amount - sum(amount)) the condition is LPO_AMOUNT-Sum(AMOUNT)>='0.1'

Labels (1)
6 Replies
brunobertels
Master
Master

Hi 

You don't need set expresion 

try 

if( LPO_AMONT-sum(AMOUNT) > 0.1 , LPO_AMONT-sum(AMOUNT) ) 

Sam_1985
Contributor II
Contributor II
Author

thanks for this solution but even it's correct no value appear??see attached file

Sam_1985
Contributor II
Contributor II
Author

now i know the issue 

one lpo amount have many amount paid 

i write it as 

=sum({<LPO_ID>}LPO_AMOUNT)-Sum({<LPO_ID>}AMOUNT)

 

but actually the number which appear is wrong even i do distinct before lpo amount ,is you have any idea??

Sam_1985
Contributor II
Contributor II
Author

do you have any idea?

vinieme12
Champion III
Champion III

please provide more information

  • on what you are trying to achieve
  • a bit about your data, 
  • sample data  or an app with sample data

makes it easier for members here to help you better

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
brunobertels
Master
Master

Sorry 

Don't see the issue 

If I understand you have one unique amount for LPO AMOUNT by LPO_ID but connected to several AMOUNT ? but you want to pick only one for your mesure sum({<LPO_ID>}LPO_AMOUNT)-Sum({<LPO_ID>}AMOUNT) ?

How do you know wich one it is ? it is the min amount max amount or is there another ID or dim you can use ?