Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Formula problem

Hi all

Can somebody explain why this formula is not working?

=sum({$ < Fakten.Kostenart = {4207, if(vDatumVon <= '31.03.2012', '6662',Null)}, Kalender_Datum = {"$(='<='&(vDatumBis)&'>='&(vDatumVon))"}  >} Fakten.Betrag )

When I replace "if(vDatumVon <= '31.03.2012', '6662',Null)" with a variable "vtest" it works perfectly.

sum({$ < Fakten.Kostenart = {4207, vtest}, Kalender_Datum = {"$(='<='&(vDatumBis)&'>='&(vDatumVon))"}  >} Fakten.Betrag )

I've no idea why?

cheers

Marco

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Hi,

you can not use expressions directly in set anlysis.

so use:

$(=if(vDatumVon <= '31.03.2012', '6662',Null))

for

"if(vDatumVon <= '31.03.2012', '6662',Null)"

hope it helps u.

Niranjan M.

View solution in original post

2 Replies
Not applicable
Author

Hi,

you can not use expressions directly in set anlysis.

so use:

$(=if(vDatumVon <= '31.03.2012', '6662',Null))

for

"if(vDatumVon <= '31.03.2012', '6662',Null)"

hope it helps u.

Niranjan M.

Not applicable
Author

Cool, works perfectly. Thank you. You made my day