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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

LINE CHART ISSUE

I have a variable (vXYZ) which contains the aggregated dollars, I can't sum them .  I need to show them in a Line chart with Month as a Dimension , so I need to show the variable (vXYZ) values for each month on the Line, chart.

Currently I have a Month Dimension and in the Expression I have $(vXYZ).   I do get the Value for the  selected month only.  I would like to see those values for each month forming my line.

Can you please help

Labels (1)
7 Replies
MK_QSL
MVP
MVP

How you define the variable? Can you provide sample data or application to work?

settu_periasamy
Master III
Master III

Hi,

can you post the sample qvw?

Not applicable
Author

Variable is calculating the difference between the dollars for the (Current MOnth - Previous MOnth)

MK_QSL
MVP
MVP

Provide sample/dummy data... or sample application.

Not applicable
Author

YRMTH        YearMonth                          Sales (YTD)
2015072015Jul20
2015072015Jul30
2015062015Jun40
2015052015May55
2015062015Jun65
2015012015Jan75
2015012015Jan80
2015042015Apr90
2015072015Jul95
Sales Data is Cumulative

I am trying to calculate Month to Date from this Year to Date data

the variable vXYZ is 

(Sum( {<Year={$(=Max(Year))}, Month={$(=vCurMth) } >} Sales)

-

Sum( {<Year={$(=Max(Year))}, Month={$(=vPrevMth)} >} Sales))

vCurMth =  Month

vPrevMth = Prev_Month  which is (Month-1) in the script

caio_caminoski
Creator
Creator

Try

(Sum( {<YRMTH={$(=Max(YRMTH))} } >} Sales)

-

(Sum( {<YRMTH={$(=Max(YRMTH)-1)} } >} Sales)


Hope it helps

Best regards


Caio



...


Now I see that it is a line chart and not a text box... I don't think my suggestion will work..


Not applicable
Author

YRMTH        YearMonth                          Sales (YTD)
2015072015Jul20
2015072015Jul30
2015062015Jun40
2015052015May55
2015062015Jun65
2015012015Jan75
2015012015Jan80
2015042015Apr90
2015072015Jul95
Sales Data is Cumulative

I am trying to calculate Month to Date from this Year to Date data

the variable vXYZ is

(Sum( {<Year={$(=Max(Year))}, Month={$(=vCurMth) } >} Sales)

-

Sum( {<Year={$(=Max(Year))}, Month={$(=vPrevMth)} >} Sales))

vCurMth =  Month

vPrevMth = Prev_Month  which is (Month-1) in the script