Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Accumulation Data divide

Hi Everyone,

I have monthly revenue data and monthly booking data. I need to show them accumulate data month by month. I need create a ratio o those two data. Here is accumulate booking data:

if(sum ( {$<[Month] = {"<=$(vReviewMonth)"}>} [Bookings]/1000000),

rangesum(

sum ( {$<[Month] = {"<=$(vReviewMonth)"}>} [Bookings]/1000000),

above("BookingActual")

))

Here is Revnue Data:

if(sum ( {$<[Month] = {"<=$(vReviewMonth)"}>} [Bookings]/1000000),

rangesum(

sum ( {$<[Month] = {"<=$(vReviewMonth)"}>} [Bookings]/1000000),

above("BookingActual")

))

I am looking to get right Ratio:

Month1234567
Revenue3457645
Booking7536457
Accumulate Revenue371219252934
Accumulate Booking7121521253037
Ratio2.3333331.7142861.251.10526311.0344831.088235

If I use [booking data]/[Revenue Data], I cannot get right ratio. Anybody can help?

Thank you inadvance,

Dust

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

I have made changes to the qvw file to do what you stated above. See if this meets your needs. Basic data exists in the tables generated by the script. You need to play with calculated dimensions, expressions and other UI object to implement what you want.

Hope this helps.

View solution in original post

7 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Can you upload a sample file?

nagaiank
Specialist III
Specialist III

Is the attached qvw file meeting your requirements?

Not applicable
Author

Hi Krishmamoorthy,

Thank you very much for your helpful answer. I need show this ratio only by a line chart. The user also need be able to select the month and the chart should show a line from month 1 to month selected. It looks very complex.

Let me know if you have any thoughts on it.

Thank you again,

Dust

nagaiank
Specialist III
Specialist III

Modified application to show the ratio and other numbers as line graphs is attached.

If you want to selected months only, you may change the dimesion to a calcuated dimension with appropriate expression as needed.

Hope this helps.

Not applicable
Author

Thanks, Krishnamoorthy!

I can see your beautiful solution here. But when I select a month, the chart need show all the month from begin of the year.

For example, I want to see month 4, can the chart show 1,2,3,4 as a line chart?

I appreciate your help.

Best,

Dust

nagaiank
Specialist III
Specialist III

I have made changes to the qvw file to do what you stated above. See if this meets your needs. Basic data exists in the tables generated by the script. You need to play with calculated dimensions, expressions and other UI object to implement what you want.

Hope this helps.

Not applicable
Author

Hi Krishnamoorthy,

Thank you very much for your solution. I can see you beautiful thoughts. My current is a little bit complex. Would you be able to do a anyway meeting to help me out on this?

Thanks,

Dust