Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
s10157754
Contributor

Dynamic Report Header

Dear Qlikview Experts,

I had came across a situation whereby I was unable to have dynamic report header.

My intention is to have one week date period appearing on the top left hand side of the report.

E.g. Period of Performance: 06/02/2018 ~ 12/02/2018

Capture.PNG

I had tried to write the expression in report setting like the expression below but it does not work.

=Date(Max(Date)-7) & ' ' & '~' & ' ' & Date(Max(Date)-1)

I had also tried to create variable and put inside the report header. However it also does not work.

Any ideas from you all would be greatly appreciated! Thank you for your help in advance!

Best Regards

1 Solution

Accepted Solutions
shiveshsingh
Honored Contributor

Re: Dynamic Report Header

Try this

=date(num (max((date(date#(Date,'DD/MM/YYYY'),'MM/DD/YYYY'))))-7) & ' ' & '~' & ' ' & date(num (max((date(date#(Date,'DD/MM/YYYY'),'MM/DD/YYYY'))))-1)

3 Replies
shiveshsingh
Honored Contributor

Re: Dynamic Report Header

Try this

=date(num (max((date(date#(Date,'DD/MM/YYYY'),'MM/DD/YYYY'))))-7) & ' ' & '~' & ' ' & date(num (max((date(date#(Date,'DD/MM/YYYY'),'MM/DD/YYYY'))))-1)

s10157754
Contributor

Re: Dynamic Report Header

Hi Shivesh,

Thank you so much for your help! It works like a charm!

Best Regards

shiveshsingh
Honored Contributor

Re: Dynamic Report Header

Glad to know it works

Cheers!

Community Browser