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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

need script/logic help in Budget report

Hi,

i got a budget analysis report for forecast vs actual revenue billed by fiscal year & by fiscal month(Fiscal calender is 1st July - 30th June).

In that report, when user selects a fiscal month from Calender filter, if it's a previous month(for ex: MAY), the report column should show the actual revenue, otherwise(for ex: JUNE) should show forecast amount.

And when user selects multiple months(say for ex: this Qtr(APRIL + MAY + JUNE), same logic should be applied by summing up like Revenue from APRIL & MAY + Budget for JUNE.

please help me to achieve this.

Thanks.

4 Replies
mdmukramali
Specialist III
Specialist III

Dear Naveen,

Can you attach the sample file.

Thanks,

Mukram.

Not applicable
Author

Hi Mukram,

thank you for looking at my issue.

it's pretty hard for me to produce a file, but I can give you sample data:


InvoicedateFiscalmonthRevenueBudget
5-Jan-14JAN500
15-Jan-14JAN025
5-Feb-14FEB350
15-Feb-14FEB030
5-Mar-14MAR780
15-Mar-14MAR045
5-Apr-14APR450
15-Apr-14APR056
5-May-14MAY440
15-May-14MAY023
5-Jun-14JUN770
15-Jun-14JUN099
mdmukramali
Specialist III
Specialist III

Dear naveen,

If user selected Jan then what should be your output?

and

if he select June then what should be your output from your sample data?

Thanks,

Mukram.

Not applicable
Author

for Jan, result should be "50"

for Jun, "99".

if user selects multiple months, like JAN + MAR + JUN = 50 + 78 + 99 = 227.

Hope it makes sense.