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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set default DATE or time period ?????

How i can set default Current Date or Time Period in my report/Dashboard ???????

5 Replies
martin59
Specialist II
Specialist II

Hello,

You have to use =today() or =now() functions in a text area.

Not applicable
Author

Thanks Martin , but i want it when i have to set for a default month ??????

Is there any possibility that report automatically starts up at default month ????/

Regards

Ashwin

Not applicable
Author

Dear All ,

Is there any option for getting default month on the report / dashboard..............???

I have tried but not getting it. i want to restrict my application to current month.

Regards

Ashwin

martin59
Specialist II
Specialist II

Have you tried =Month(Today()) ?

johnw
Champion III
Champion III

So you want to actually select the current month automatically? I've done this with macros that execute when you open the document. For example, this selects a bunch of fields and activates a particular sheet. It sets the month to the previous month. The current month wouldn't need the addmonths(...,-1). You might be able to do this with actions in 9.0. I haven't really used actions yet since we're officially on 8.5 still.

sub initialSelections()
ActiveDocument.GetField("Date Type").Select "Activity Date"
ActiveDocument.GetField("Month").Select ActiveDocument.Evaluate("date(addmonths(monthstart(today(1)),-1),'MMM YY')")
ActiveDocument.GetField("Location").Select "PCM"
ActiveDocument.GetField("Show Weights In").Select "Tons"
ActiveDocument.GetField("Show Coating In").Select "oz/ft2"
ActiveDocument.GetSheet("Yields by Product").Activate
end sub