Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Split revenue (quarter) over months

Hi guys,

I have the field revenue on a quarterly basis and want to split the revenue equally over every month. Can someone give me an example how to do this?

Example:


Revenue Q1: 300$ should be split into:

Jan. 100$,

Feb. 100$,

March 100$

Many thanks,

Harry

5 Replies
Not applicable
Author

Hey Harry,

Maybe something like attached?

Thanks

Not applicable
Author

Hi Ajay,

Many thanks! That's exactly what I want to do. I tried to apply your example to my case:

I have a StartDate and EndDate (3 months (quarter)) and in my master calender [month year]. However I tried to split my revenue based on the start and end date and connect it to [year month]. But I cant get the revenue split. Its always at the first month of the quarter.

Any ideas?

Many thanks,

Harry 

Not applicable
Author

Can you pls attach a sample of your file?  That would be really helpful in debugging.

Not applicable
Author

Hi guys,

I tried the following but without any success:

FOR i = 0 to 2 step 1

LEFT JOIN (Period)

LOAD

%PeriodId,

AddMonths(Date(Period.StartDate), $(i)) as Period.StartDate,

Revenue/3 as Revenue

RESIDENT Period;

NEXT

Any ideas?

Thanks,

Harry

MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_147101_Pic1.JPG

LOAD Month(Date#((Right(Quarter,1)-1)*3+IterNo(),'M')) as Month,

    Money(Revenue/3) as Revenue

Inline [

Quarter, Revenue

Q1, 100

Q2, 200

Q3, 500

Q4, 1000

]

While IterNo()<4;

Instead of loading inline you would load from your source.

hope this helps

regards

Marco