Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
0li5a3a
Creator III
Creator III

Display the missing date in a Bar Chart

Hi all,

I have a new challenge today to display all the dates if I don't have data in a Bar Chart for the previous week.

I have a filter which contains all the YearWeeks and two charts one is for the current selections and one for the  previous  week.


For the current selection I can display the missing dates like in the chart below.

Capture.PNG

My problem is with the previous  week where the chart looks like below where you can see that the dates 23 and 24 are missing.Capture.PNG

My dimension for both charts is the calendar Day and my expressions are:

Current Selections:

=count({$<Status = {'Approved', 'Scheduled'},WeekNumber = {'$(=Max(WeekNumber))'}>}TicketD)  and

=sum({<WeekNumber = {'$(=Max(WeekNumber))'}>}1) ( I use this to display the nulls ) and like you can see all works,

Previous Week:


=count({1<Status = {'Approved', 'Scheduled'},WeekNumber = {'$(=Max(WeekNumber)-1)'}>}TicketID)

I tried to use =sum({<WeekNumber = {'$(=Max(WeekNumber))'}>}1)  and Sum(1) but the chart looks wrong

Capture.PNG

Could someone please help me?

Regards,

C

1 Solution

Accepted Solutions
pradosh_thakur
Master II
Master II

Hi

PFA. it is sorted now as per your requirement. please mark answers helpful so that whoever visits in future will find it easy.

regards

Pradosh

Learning never stops.

View solution in original post

16 Replies
vishsaggi
Champion III
Champion III

Can you share a sample app to look into. And did you uncheck supress 0 values in presentation tab of your chart properties.?

Anil_Babu_Samineni

Have you created or generated Master calendar in your script?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
0li5a3a
Creator III
Creator III
Author

I have a master calendar

0li5a3a
Creator III
Creator III
Author

Sorry but I can't

vishsaggi
Champion III
Champion III

You can hide the confidential info following this?

Preparing examples for Upload - Reduction and Data Scrambling

Uploading a Sample

Preparing examples for Upload - Reduction and Data Scrambling

0li5a3a
Creator III
Creator III
Author

Hi Vishwarath,

I have attached some files.

Regards ,

C

vishsaggi
Champion III
Champion III

Are you looking for this?

Capture.PNG

pradosh_thakur
Master II
Master II

Hi

is this what you are looking for ?

regards

Pradosh

Learning never stops.
0li5a3a
Creator III
Creator III
Author

I want to Display only the days (16,17,18,19,20,21,22):)