Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sbarker_11
Helper I
Helper I

I have multiple dates and multiple deposits which i need to combine. please help

Hi,

 

I have Applications from companies who have multiple approval and depoist lenders and dates. I need to report on these in a combined fashion so that I can show each company - number and value of deposits and approvals by date range. This will also help when reporting on indvidual Lenders. 

 

DATA EXAMPLE:

APP IDCompany NameApproval 1 DateApproval 1 LenderApproval 1 AmountApproval 2 DateApproval 2 LenderApproval 2 AmountApproval 3 DateApproval 3 LenderApproval 3 AmountDeposit 1 DateDeposit 1 LenderDeposit 1 AmountDeposit 2 DateDeposit 2 LenderDeposit 2 AmountDeposit 3 DateDeposit 3 LenderDeposit 3 Amount
4602T17/07/2024MAXCAP15,00022/12/2023FC TEST 120,000   15/02/2024FC TEST 130,00021/02/2024Fundtest5000   
4566U12/12/2023MAXCAP40,00007/02/2024FC TEST 130,000   03/01/2024FC TEST 130,00025/01/2024GOT 240,000   
4528V02/02/20244TEST80,000      20/12/2023FC TEST 130,00013/02/2023Fundtest5,00013/02/20244TEST65000
4478W11/01/2024FC TEST 130,00012/01/2022GOT 22,600   15/02/2024Fundtest30,00017/02/2024GOT 22,600   
                    

 

 

REQUIRED OUTPUT:

 

TABLE 1 (APPROVALS)

APP IDCompany NameApproval DateApproval LenderApproval NoApproval Amt
4602T17/07/2024MAXCAPApproval 1 Amount15,000
4602T22/12/2023FC TEST 1Approval 2 Lender20,000
4566U12/12/2023MAXCAPApproval 1 Amount40,000
4566U07/02/2024FC TEST 1Approval 2 Lender30,000
4528V02/02/20244TESTApproval 1 Amount80,000
4478W11/01/2024FC TEST 1Approval 1 Amount30,000
4478W12/01/2022GOT 2Approval 2 Lender2,600

 

 

TABLE 2 (DEPOSITS)

APP IDCompany NameDeposit DateDeposit LenderDesposit NoDeposit Amt
4602T15/02/2024FC TEST 1Deposit 1 30,000
4602T21/02/2024FundtestDeposit 25,000
4566U03/01/2024FC TEST 1Deposit 1 30,000
4566U25/01/2024GOT 2Deposit 240,000
4528V20/12/2023FC TEST 1Deposit 1 30,000
4528V13/02/2023FundtestDeposit 25,000
4528V13/02/20244TESTDeposit 365,000
4478W15/02/2024FundtestDeposit 1 30,000
4478W17/02/2024GOT 2Deposit 22,600
5 REPLIES 5
tharunkumarRTK
Super User
Super User

@sbarker_11 

You can do this in Power Query.

Step 1: 

Create two reference queries, one for Approvals and another for Deposists.
Step 2:

Approvals Query:

1. Remove Deposit amount, Deposit Ledger and Deposit amount columns

2. Select Approval number and approval amount columns (both 1 and 2)

Step 3:

Deposits Query:

1. Remove all Approval related columns 

2. Unpivot deposit lender, deposit number and deposit amount coumns.

 


If the post helps please give a thumbs up


If it solves your issue, please accept it as the solution to help the other members find it more quickly.


Tharun

 

Hi, I can unpivot but how do I deal with the multiple dates?

@sbarker_11 

As per your required output, you have one date column in approvals table and another one in the deposits table. You can create one date table in Power Query and add one relationship between approvals and new date table and deposits and date table. This way you will be able to add one date slicer to your report and can filter both the tables.

 

Hope it helps


If the post helps please give a thumbs up


If it solves your issue, please accept it as the solution to help the other members find it more quickly.


Tharun

 

Hi,

 

Thank you but it still doesnt work. I do require one date but the date list should represent a list of deposit date 1, deposit date 2, deposit date 3 etc which will have different lenders and deposit amounts... when i unpivot the columns, the data then gets mixed up even if i unpivot the dates first.

@sbarker_11 
Thanks for the clarification. For your requirement, I would not suggest you to unpivot the columns. Instead, create one active relationship (approvals<-dateTable and datetable -> deposits) and create inactive relationships for all other date columns. Active the inactive relationships whenever required in your measures.

 


If the post helps please give a thumbs up


If it solves your issue, please accept it as the solution to help the other members find it more quickly.


Tharun

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.