Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to calculate opening account

Hello,

Find attached excel file. how do i calculate opening account from my credit and debit account + previous day of opening account.

Rgds

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Like this?

Data:

LOAD date(Date,'MMM-YY') as Date,

    [Opening account],

    Debit,

    Credit,

    rangesum(peek([Opening balance]),previous(Debit),-previous(Credit)) as  [Opening balance]

FROM [opening account.xlsx]

(ooxml, embedded labels, table is Sheet1);


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar

Like this?

Data:

LOAD date(Date,'MMM-YY') as Date,

    [Opening account],

    Debit,

    Credit,

    rangesum(peek([Opening balance]),previous(Debit),-previous(Credit)) as  [Opening balance]

FROM [opening account.xlsx]

(ooxml, embedded labels, table is Sheet1);


talk is cheap, supply exceeds demand