Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to create a YTD visualization ?

How to make a visualization showing YTD Sales of each Salesman.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

LOAD

     InYearToDate(MakeDate(Year,Month), Today(), 0) as YTD,

     Year,

    Month,

     Product,

     Sales,

     Salesman,

     Area,

     Count

FROM

RobSalesFact.csv

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

1.png

or this (same expression), dimensions YearMonth and Salesman

1.png

View solution in original post

4 Replies
maxgro
MVP
MVP

LOAD

     InYearToDate(MakeDate(Year,Month), Today(), 0) as YTD,

     Year,

    Month,

     Product,

     Sales,

     Salesman,

     Area,

     Count

FROM

RobSalesFact.csv

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

1.png

or this (same expression), dimensions YearMonth and Salesman

1.png

Not applicable
Author

thanks a lot.

but my requirement is like, the bar chart should not affect when i select any year or month.

the chart should respond to only selection of columns other than year and month.

PrashantSangle

Hi,

Nullify the field which you want not to affect on expression

like

Sum({<YTD={"-1"},Year=,Month=>}Sales)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

hey ! it works

thanks alot