Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
joshrussin
Creator III
Creator III

Calculation help

Alright, I am trying to calculate processed for the month. This formula works, but now since it is the 1st, we have no revenue. In my table my processed tab actually is processed prior day. Is there any way to make this formula not include the first workday in the month.

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

3 Replies
ziadm
Specialist
Specialist

Create a Master Calendar that span all days in your fact Table ...

Create a Flag of all dates at the MonthStart ..

if (Date = MonthStart(Date),1,0)  as excludeFirstMonth

Then add in your set Analysis

excludeFirstMonth = {0}

joshrussin
Creator III
Creator III
Author

Here is a sample. In the database, I put a dummy date for tomorrow the 2nd to see if that would work. If needed I can take it out and reattach.

sunny_talwar

So what exactly are you looking to do here? You have 8/2/2017 data and you would want to see the Revenue for which date?