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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
joshrussin
Creator III
Creator III

Line Graph Help

Hey guys,

I have a line graph that I am trying to show items produced per month. Currently it only shows Jan through September because we haven't collected any data for the rest of the year (Oct, Nov, Dec). I was curious to see how I can get those months to show up anyways with no data collected so far. Here is the current formula I am using to show the total per month.

Sum({$<Program_Dash={'Mechanical Inspection'}, Status_Dash={'Completed'}, Year = {"$(=Year(FirstWorkDate(ConvertToLocalTime(Date(now()), 'GMT-05:00'),1,$(vHolidays))))"}>} Processed_Dash)

22 Replies
Anil_Babu_Samineni

I believe you have to generate Master Script to get missing Dates thru Months until whole year of months then in front end you have to tick the Suppress from Presentation tab to show the null values in Graph..

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
joshrussin
Creator III
Creator III
Author

I've never used this before. Any tips?

pradosh_thakur
Master II
Master II

what is the dimension you are using?

month ?

if so

can you please go to the presentation tab and un-check suppress zero values.

regards

Pradosh

Learning never stops.
Anil_Babu_Samineni

Try this Master Calendar Generation 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
mostwanted123
Creator
Creator

Also,

After you create the master calendar script,

use the 'month' field as dimension and and un-check suppress zero values in the Presentation tab.


In the expression,

Sum({$<Program_Dash={'Mechanical Inspection'}, Status_Dash={'Completed'}>} Processed_Dash)


Regards,

Pratik

joshrussin
Creator III
Creator III
Author

This is where I am at on this. I am getting an error on the From part.

LOAD

    Date_Dash,

    Date(Date_Dash) as Date_MS,

    Month(Date_Dash) as Month,

    Num(Month(Date_Dash)) as MonthNum,

    Year(Date_Dash) as Year,

    MakeDate(year(Date_Dash)) as vCY,

    MakeDate(month(Date_Dash)) as vCM,

    Min(Date_Dash) AS MinDate,

    Max(Date_Dash) as MaxDate,

    If(Processed_Dash < Daily_Target_Dash, 1,0) as Daily_Target_Flag,

    Program_Dash,

    UOM_Dash,

    Status_Dash,

    Ave_Cost_Dash,

    Processed_Dash,

    Daily_Target_Dash,

    Emp_Act_Dash,

    Rev_Diff_Dash;

Load Date(MinDate +IterNo()-1 ) AS MasterCal While (MinDate + IterNo() -1) <= Num(MaxDate);

FROM [lib://Data files/OB_Summary_Data.xlsx]

(ooxml, embedded labels, table is OB_Dash_Data);KPI_0232.jpg

Anil_Babu_Samineni

You missed this part?

Capture.PNG

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
joshrussin
Creator III
Creator III
Author

In the first attached, I added that to my original LOAD instead because I get this error when I try like that.

KPI_0232.jpg