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: 
Not applicable

Current Month

I have loaded excel data to my qlikview document:

LOAD

ApplyMap('MapMonth',Month) as Month_Num

[Returns %],

Target

Which gives me a table that looks like this:

Month_Num     Returns %   Target

6                         0%             50%

7                        62%            70%

8                        55%            80%

9                                          100%

10                                         100%

11                                          100%

12                                           100%

How do I get the current months info to display in my chart for returns value.

Ie.  Today I would want it to say 55% without any selection.

It should always show the value in the current month.

Thanks

Labels (1)
1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

=Sum({1<Month_Num  = {$(=num(Month(Today())))}>}[Returns %])

View solution in original post

8 Replies
MayilVahanan
MVP
MVP

Hi

Try like this

=Sum({1<Month_Num  = {$(=Month(Today()))}>}[Returns %])

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
lironbaram
Partner - Master III
Partner - Master III

you can do something like

=max({<Month_Num={"$(=max({<"[Return %]={">0"}>}Month_Num))"}>}[Return %])

Not applicable
Author

Thank you for your prompt reply. However I only get 0% for this expression

- not the value

for August (8)

On 4 August 2015 at 10:57, Mayil Vahanan Ramasamy <qcwebmaster@qlikview.com>

MayilVahanan
MVP
MVP

Hi

Try like this

=Only({1<Month_Num  = {'$(=Num(Month(Today())))'}>}[Returns %])

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
sunny_talwar
MVP
MVP

You can also try this:

=Only({<Month_Num = {"$(=Max({<[Return %] = {'*?'}>}Month))"}>} [Return %])

sasiparupudi1
Master III
Master III

=Sum({1<Month_Num  = {$(=num(Month(Today())))}>}[Returns %])

jagan
Partner - Champion III
Partner - Champion III

Hi,

In Number tab Select the Number format to Fixed to 2 Decimals and select %.

Regards,

Jagan.

Not applicable
Author

Worked perfectly Sasidhar - thank you.