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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Year to Date with an if Expression

Hello together,

i have a problem and search for the solution.

I want so show the the YTD figures, the column YTD works, but the YTD<150 doesen't works.

No of OrdersYTD<150€YTD <150
101022
count([DISTINCT [Einkaufsbeleg])count({year={$(vMaxYear)}, Date = {'<$(vMaxDate)'}, Month=>}[Einkaufsbeleg])count(DISTINCT if((EffektivwertSumme>'150,00' AND EffektivwertSumme> '150') [Einkaufsbeleg]))count({year={$(vMaxYear)},Date={'<$(vMaxDate)'}, Month=>} if((EffektivwertSumme>'150,00' AND EffektivwertSummer<'150), [Einkaufsbeleg]))

If you see the bold characters, there are problem with the if expression. How can include the if expression in the complete formula.

Thank you for you hints.

Greets Nikolaus80

2 Replies
Not applicable
Author

Effektivtry this should be EffektivwertSummer<'150'), you have missed a ' . I think

alexandros17
Partner - Champion III
Partner - Champion III

the syntax is wrong there must be a comma after condition

count(DISTINCT if((EffektivwertSumme>'150,00' AND EffektivwertSumme> '150') [Einkaufsbeleg]))

so

count(DISTINCT if((Cond>value1AND Cond>value2), 1,0))

hope it helps