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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
stevejones1
Contributor III
Contributor III

Showing data for today() but display sunday's date on axis

Hi

Please take a look at the attached application .. i am trying to plot data of sundays on x-axis , the data is stored for each day in the table , but need to show weekly data in chart , is there a way that i could show future weekend date(sunday - 7/9) on x-axis but display max date ( today()) data ?

Thanks!

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

May be this ?

Change your dimension to:

=if(weekday(OpenDefects_EventDate)='Sun',Date(OpenDefects_EventDate), Date(WeekEnd(Today())))

Expression to:

= if(weekday(OpenDefects_EventDate) = 'Sun',Sum({<OpenDefects_Segment = P({<Trends_Priority, Trends_L1>} Trends_Segment), OpenDefects_ScrumTeam = P({<Trends_Priority, Trends_L1>} Trends_ScrumTeam)>} Total_SLAviolated_Bugs),

                                                  sum(if(OpenDefects_EventDate = today(), Total_SLAviolated_Bugs)))

Capture.PNG

View solution in original post

2 Replies
vishsaggi
Champion III
Champion III

May be this ?

Change your dimension to:

=if(weekday(OpenDefects_EventDate)='Sun',Date(OpenDefects_EventDate), Date(WeekEnd(Today())))

Expression to:

= if(weekday(OpenDefects_EventDate) = 'Sun',Sum({<OpenDefects_Segment = P({<Trends_Priority, Trends_L1>} Trends_Segment), OpenDefects_ScrumTeam = P({<Trends_Priority, Trends_L1>} Trends_ScrumTeam)>} Total_SLAviolated_Bugs),

                                                  sum(if(OpenDefects_EventDate = today(), Total_SLAviolated_Bugs)))

Capture.PNG

stevejones1
Contributor III
Contributor III
Author

Thank you!