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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dashboarding- Bar chart with add calculated Dimension?

Hello all,

I'm having trouble with the development of a bar chart, that  has as dimension an Interval of time and expression the following: previous year, previous month and actual date.

Can you give me some advices?

Thanks in advance.

Sérgio Duarte

1 Solution

Accepted Solutions
crusader_
Partner - Specialist
Partner - Specialist

Hi,

Use below expression

=if( InMonth( Date, AddMonths(today(),-1),1) or InMonth( Date, AddMonths(today(),-13),1) or InMonth( Date, today(),-1),

  Date(monthStart(Date),'MM/YYYY'), null()

)

And Suppress Nulls in dimensions.

PFA.

Regards,

Andrei

View solution in original post

1 Reply
crusader_
Partner - Specialist
Partner - Specialist

Hi,

Use below expression

=if( InMonth( Date, AddMonths(today(),-1),1) or InMonth( Date, AddMonths(today(),-13),1) or InMonth( Date, today(),-1),

  Date(monthStart(Date),'MM/YYYY'), null()

)

And Suppress Nulls in dimensions.

PFA.

Regards,

Andrei