Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
paulyeo11
Valued Contributor II

Set Expression working in Table not work in chart ?

Hi All

Table 1 Expression below , Display Amount RM 35K is correct :-

money(

SUM({<year = {"$(=Max(year)-0)"},month={"<=$(=month)"},$(ColumnDim51)={$(ColumnDim51)}>}Amount*1)/$(Columndim89)/1000,

$(vMoneyFormatK))

How to make below expression from chart 1 also display RM 35K same as Table 1 ?

money(

SUM({<year = {"$(=Max(year)-0)"},$(ColumnDim51)={$(ColumnDim51)}>}Amount*1/$(Columndim89)/1000)

,$(vMoneyFormatK))

Now it display RM 140K, Hope some one can advise me.

In my next post , i will post my QV Doc

Paul

1 Solution

Accepted Solutions

Re: Set Expression working in Table not work in chart ?

May be this;

Money(Sum(DISTINCT{<year = {"$(=Max(year)-0)"},$(ColumnDim51) ={$(ColumnDim51)}>} Amount*1/ $(Columndim89)/1000), $(vMoneyFormatK))


Capture.PNG

3 Replies
paulyeo11
Valued Contributor II

Re: Set Expression working in Table not work in chart ?

My QV Doc

Re: Set Expression working in Table not work in chart ?

May be this;

Money(Sum(DISTINCT{<year = {"$(=Max(year)-0)"},$(ColumnDim51) ={$(ColumnDim51)}>} Amount*1/ $(Columndim89)/1000), $(vMoneyFormatK))


Capture.PNG

paulyeo11
Valued Contributor II

Re: Set Expression working in Table not work in chart ?

Hi Summy

Many thank for your help. Your expression is working fine.

But the chart still have little issue. when i try to display chart for whole year from jan till Dec. the currency sign not work when i set to Org.

Enclosed My QV Doc for your ref

Paul

Community Browser