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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Not correct

Whats wrong in this formula? I think the hooks are not on the correct place. Who can halp me?

='PRICE WEEK ' &MAX(JAAR) & CHR(10) & NUM(SUM({<JAAR={"$(=MAX(JAAR))"},%Date={"<=$(=ADDYEARS(MAX(%Date),-1))"}>}([SOMETHING]/100))

+

sum({<JAAR={
"$(=MAX(JAAR))"},%Date={"<=$(=ADDYEARS(MAX(%Date),-1))"}>}(
If(REKENING=8094,
((
[THING])/100)-(([SO])/100)
,0)))
+
(sum(
If(REKENING=8194,
((
[THING])/100)-(([SO])/100)
,0))
&
(
If(REKENING=8294,
((
[THING])/100)-(([SO])/100)
,0)))



/


(count(DISTINCT(
[WEEK])))


,'€ #.##0;€ -#.##0') 

1 Solution

Accepted Solutions
MayilVahanan


Hi

May be try like this

'PRICE WEEK ' & MAX(JAAR) & CHR(10) &

NUM(
(
SUM({<JAAR={"$(=MAX(JAAR))"},%Date={"<=$(=ADDYEARS(MAX(%Date),-1))"}>}([SOMETHING]/100))
+

sum({<JAAR={"$(=MAX(JAAR))"},%Date={"<=$(=ADDYEARS(MAX(%Date),-1))"}>}(
  If(WildMatch(REKENING,8094,8194,8294),(([THING])/100)-(([SO])/100),0)))
)

/(count(DISTINCT [WEEK]))

,'€ #.##0;€ -#.##0') 

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

4 Replies
MayilVahanan


Hi

May be try like this

'PRICE WEEK ' & MAX(JAAR) & CHR(10) &

NUM(
(
SUM({<JAAR={"$(=MAX(JAAR))"},%Date={"<=$(=ADDYEARS(MAX(%Date),-1))"}>}([SOMETHING]/100))
+

sum({<JAAR={"$(=MAX(JAAR))"},%Date={"<=$(=ADDYEARS(MAX(%Date),-1))"}>}(
  If(WildMatch(REKENING,8094,8194,8294),(([THING])/100)-(([SO])/100),0)))
)

/(count(DISTINCT [WEEK]))

,'€ #.##0;€ -#.##0') 

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

Thanks it is correct!

p_verkooijen
Partner - Specialist II
Partner - Specialist II

edit: See that the answer was allready added before this comment. Should you want to analyze the issue do :

Split this expression in seperate expressions in a Chart to isolate the incorrect part.

Second don't use a expression label in the chart, when you hover over the label it wil show the calculated contents of the expression (i.e. $(=YEAR(Today())) wil be shown as 2015 .

2015-04-15 10_56_08-QlikView x64 - [Betsy Bike Dashboard_].png

Qlik_learner_developer

Hello all,

I am new to qliksense,
Can you please share qvf  or qvw file for betsy bikes app.