Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Ondrism
Contributor III
Contributor III

IF statement in the Edit expression window.

Hi there,

I am trying to use if statement in Edit expression window for KPI value. this:

if($(vProcess)='TRUCKLOAD',
Count({<Process={'$(vProcess)'}, BU_Cons={'CSI','FG','PRINTERS','SAM','MC'}>} distinct Process_Num),
Count({<Process={'$(vProcess)'}>} distinct Process_Num)
)

unfortunately every time got a Error in expression. I am quite new in Qlik, so anybody knows, what i doing wrong?

Thanks for help!

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Can you post a screenshot of the entire Edit Expression window ??

 

Mostly this

if('$(vProcess)'='TRUCKLOAD',
Count({<Process={'$(vProcess)'}, BU_Cons={'CSI','FG','PRINTERS','SAM','MC'}>} distinct Process_Num),
Count({<Process={'$(vProcess)'}>} distinct Process_Num)
)

 

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

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

Can you post a screenshot of the entire Edit Expression window ??

 

Mostly this

if('$(vProcess)'='TRUCKLOAD',
Count({<Process={'$(vProcess)'}, BU_Cons={'CSI','FG','PRINTERS','SAM','MC'}>} distinct Process_Num),
Count({<Process={'$(vProcess)'}>} distinct Process_Num)
)

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Ondrism
Contributor III
Contributor III
Author

I already found the solution. Its the same, as you highlight with orange color. Anyway, thanks you very much.