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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
arulsettu
Master III
Master III

Is it possible in pivot or straight table

hi,

i need to do a calculation in row wise

for example data is like this.     Account and Amount are fields available

ACCOUNT                                                  AMOUNT

Gross premiums                                            100

RI Share of premium-FAC & Prop. TTY            200

XOL Protection costs                                      300

Movement in unexpired premium                      250

what i need is

ACCOUNT                                                  AMOUNT

Gross premiums                                            100

RI Share of premium-FAC & Prop. TTY            200

XOL Protection costs                                      300

Net premium                                                sum of above 3 rows

Movement in unexpired premium                      250

Net earned premium                                    Net premium + Movement in unexpired premium


like this i have to do few more calculations within rows. is this possible to do? or any other alternate ways to do?

please suggest some ideas

Thanks

31 Replies
arulsettu
Master III
Master III
Author

anyone did this before?

ankitaag
Partner - Creator III
Partner - Creator III

Hi,

For this kind of P&L you need to make some big calculations .

Please refer the attached application.

arulsettu
Master III
Master III
Author

Thanks Ankita,

                         i have many calculations like this i want to know how they calculating with P&L

ex: a+b-c

is this working in intervalmatch?

ankitaag
Partner - Creator III
Partner - Creator III

I haven't use intervalmatch. Can you add some data in the inline in the application whivh I have attached. and let me know the calculations you want to do

Not applicable

Hi arul,

We have implemented several large application containing complex p&l, balance sheet and cash-flow statements and al of them we have done using the interval match process mentioned in the technical brief. If you follow the directions in the document you should be able to get your report done

arulsettu
Master III
Master III
Author

Hi Sana,

          i dont have fields like Exec P&L Level and Exec P&L Calculation and ExecPLStart and ExecPLEnd

and Reporting Code also. shall ask DB admin to insert these fields. and i studied that document. but i cant able to understand how its calculating NET SALES. is it based on ExecPLStart and ExecPLEnd. can you tell me how its calculating?

Thanks

Not applicable

Hi,

You do not need to necessarily have such fields. I'm guessing your account names already exist in the database? create a mapping table which will contain unique ids for each account.

ACCOUNT                                                  A/C ID

Gross premiums                                            1

RI Share of premium-FAC & Prop. TTY             2

XOL Protection costs                                     3

no create another table which will contain your your report format

report header                                              report_start      report_end                    

Gross premiums                                            1                        1

RI Share of premium-FAC & Prop. TTY             2                        2

XOL Protection costs                                     3                        3 

Net Premium                                                 1                        3  

   

Once you do this and do the interval match you can use report header in your straight / pivot table as dimension and sum(Amount) or other similar expression.

arulsettu
Master III
Master III
Author

you mean creating inline table? and i need Net Premium value by calculating

Gross premiums+RI Share of premium-FAC & Prop. TTY-XOL Protection costs

how interval match will do this?

Not applicable

Is the amount that needs to be subtracted already negative ? otherwise you can multiply by -1. For example when we did the p&l we created flags in the script which later helped us identify which filed values to addd and which ones to subtract

Not applicable

doesn't necessarily have to be inline..you can load from excel. For the report ids we created mapping tables inline then mapped it to the data we loaded from our database