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: 
paulyeo11
Master
Master

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

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this;

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


Capture.PNG

View solution in original post

3 Replies
paulyeo11
Master
Master
Author

My QV Doc

sunny_talwar
MVP
MVP

May be this;

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


Capture.PNG

paulyeo11
Master
Master
Author

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