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: 
avicentbarcelo
Contributor II
Contributor II

Balance and Movements

Hello,

I'm sorry because my english isn't good.

Forgive me if what I ask is simple to solve, but I'm new and I do not have much practice with QV.

I have a table with the following information:

- Account

- Closing Date

- Balance

With one record for each account and not always all accounts have the same closing date.

and another table with those produced movements, with the following data:

- Account

- Date Movement

- Amount

Given that on a date (Date Movement) may have several records movements and that not all movements have time, I would get a table with the following data.

- Account

- Date

- Balance date (sum of all movements that date)

- Balance on that date

Keep in mind that the Closing Date is greater than or equal to all movement dates from that account.

I would appreciate your help very much.

Regards,

Ana

5 Replies
praveen_prithiviraj
Contributor III
Contributor III

Can you provide us with some sample data and the expected output ?

Kind Regards,
Praveen Kumar. P
Anil_Babu_Samineni

It's Tricky to understand with my scramble data. But, I would read to recommend create one sample data and then send with us. So that, We may can help you.

We Can do by using this.

T1:

Load   Account,

          Closing Date,

          Balance

From Source

Left Join(T1)

T2:

Load   Account,

          Date Movement,

          Amount

From Source

Then tell me how Data model looks

And then Create one Straight Table

Account, Balance date as Dimensions

Expression for Balance date

1) Sum({<[Date Movement] = P([Date Movement]) >}Amount)

So, Here how you are calculating the Closing Date

Do you mean This

Sum({<[Closing Date] = {'>=' & Date([Date Movement],'DD/MM/YYYY')}>}Amount + Balance)

Note:- f Not, Please provide me the Sample Data Which demonstrates the Output.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable

Hi Ana,

Can you share some sample data please?

Thanks,

avicentbarcelo
Contributor II
Contributor II
Author

An excel data example

avicentbarcelo
Contributor II
Contributor II
Author

Yes. I attach an excel