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

how to show data for ytd and current month

I have a gauge chart that shows my %SLA for the current time period, in this case from 1/1/2013 to present day.  I'd like to create a text field down below this chart that shows the %SLA for the current month to date.  Has any one done this?

QLK.jpg

27 Replies
Not applicable
Author

The data appears as 3 letter text or Mmm

krishnacbe
Partner - Specialist III
Partner - Specialist III

Ok. 'Jun' month data you have it your data model, because we are comparing the current month as Jun.

create a variable as Max(Month(ROW_ADDED_DTTM)) and pass that variable to your expression

krishnacbe
Partner - Specialist III
Partner - Specialist III

Share me the qvw so that will be easy to troubleshoot the issue.

Not applicable
Author

What do I need to do to share the QVW with you?

krishnacbe
Partner - Specialist III
Partner - Specialist III

in reply editor dialog, click on Use Advance editor, there you will be able to attach the qvw.

Not applicable
Author

Apparently I do not have that feature.  This is all I see:

editor.gif

effinty2112
Master
Master

Hi John,

                    You may wish to consider adding a line like this to your load script:

if(DayNumberOfYear(InvoiceDate)<=DayNumberOfYear($(vToday)),1,0) as InvoiceYTD

This will give an easy to use flag you can put in expressions or set modifiers.

You can pick any year and aggregate on the measures with the flag = 1 and you will get the YTD figure to compare with the current year. You can add flags for MTD and QTD in a similar fashion.

Kind regards

Andrew

krishnacbe
Partner - Specialist III
Partner - Specialist III

Hi,

PFB the place check whether you get this option or not. Hope you are reply from inbox.. please try to reply from original post

Not applicable
Author

QVW is attached

krishnacbe
Partner - Specialist III
Partner - Specialist III

Here you go. Please validate the data.

below is the expression

=num((sum({<CRCaseYear={"2016"}, CRCaseMonth={"Jun"}>}count_LIVESLO_2)+sum({<CRCaseYear={"2016"}, CRCaseMonth={"Jun"}>}count_ELECSLO_2))
/(
sum({<CRCaseYear={"2016"}, CRCaseMonth={"Jun"}>}count_LIVE2)+sum({<CRCaseYear={"2016"}, CRCaseMonth={"Jun"}>}count_ELEC2))
,'#,##0.0%')