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

Problem Form

Hello,

I have this in my script:

PorcentajeCalc:

Left Join (Junt)

Load Num_Tarjeta,

if(sum(DateDebt)= , FF1 * 0),

if(sum(DateDebt)>=1   And  sum(DateDebt)<=30, FF1 * 0,01) as RER

resident Junt

Group By Num_Tarjeta;

It seems * 0 and *0,01 is wrong. How can I put this formula in qlikview?

Thanks

1 Solution

Accepted Solutions
MayilVahanan

Hi

     I think, You also include FF1 in group by..

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

6 Replies
Not applicable

The problem I suspect is the , in 0,01

Try it like this:

PorcentajeCalc:

Left Join (Junt)

Load Num_Tarjeta,

if(sum(DateDebt)= , (FF1 * 0)),

if(sum(DateDebt)>=1   And  sum(DateDebt)<=30, (FF1 * 0.01)) as RER

resident Junt

Group By Num_Tarjeta;

pgalvezt
Specialist
Specialist
Author

Hi, Thanks for your reply.

PorcentajeCalc:

Left Join (Junt)

Load Num_Tarjeta,

if(sum(DateDebt)= 'Date', (FF1 * 0)),

if(sum(DateDebt)>=1   And  sum(DateDebt)<=30, (FF1 * 0.01)) as RER


resident Junt

Group By Num_Tarjeta;

But Still Appears "Invalid Expression"

MayilVahanan

HI

Try like this

Left Join (Junt)

Load Num_Tarjeta,

if(sum(DateDebt)= 'Date', (FF1 * 0),

if(sum(DateDebt)>=1   And  sum(DateDebt)<=30, (FF1 * 0.01))) as RER


resident Junt

Group By Num_Tarjeta;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
pgalvezt
Specialist
Specialist
Author

Hi, Appears the same error.

MayilVahanan

Hi

     I think, You also include FF1 in group by..

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
pgalvezt
Specialist
Specialist
Author

That was it.

Many Thanks.