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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Aspiring_Developer
Specialist
Specialist

Show Data only for weeks in Qliksense pivot table

Hello All,

I have below table :-

Dimension -LOB_trend | REPORT_DATE

Measure- sum({<Monday_flag={1}, Year_trend={'$(=Max(Year_trend))'}>}TREND_VOL)

Flag I created at the backend :-

Aspiring_Developer_2-1653899811017.png

 

Here we are showing weekly data and here the week is starting from Monday , so it is specifically showcasing numbers for Monday date in every week.

Aspiring_Developer_0-1653899618959.png

 

My query is that in the filter above "Report_Date" , I want to show the same dates like i am showcasing the pivot table. Right now , Report_Date is showing all the dates , but i want to show only opening weeks date i.e of every monday .

Aspiring_Developer_1-1653899724404.png

How can I achieve it in the filter ? Can anyone please help ?

Thanks in advance

 

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

Hi 

Try like below and use "REPORT_DATE_MON" in the filter Panel.

If(WeekDay(REPORT_DATE)='Mon' or Day(REPORT_DATE)=1, REPORT_DATE) as REPORT_DATE_MON

MayilVahanan_0-1653905428543.png

 

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

View solution in original post

3 Replies
MayilVahanan

HI

You can bring one more field in the script similar to Monday_flag for Monday_Date also. so you can use in the filter with that new field

MayilVahanan_0-1653899965412.png

 

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

Hello ,

@MayilVahanan Not very clear, could you share some sample example of the script

MayilVahanan

Hi 

Try like below and use "REPORT_DATE_MON" in the filter Panel.

If(WeekDay(REPORT_DATE)='Mon' or Day(REPORT_DATE)=1, REPORT_DATE) as REPORT_DATE_MON

MayilVahanan_0-1653905428543.png

 

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