Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Financial Data and Arranging into Tiers

Tommy_Alterax
8 - Asteroid

Hi Guys,

 

I have a portfolio of transactions where the "Daily Balance" column is duplicated see below

 

 

 

TierPortfolioRange StartRange EndDaily Balance
1AAA05000002000000
2AAA50000110000002000000
3AAA100000125000002000000
4AAA2500001999999992000000
 

The daily balance column should reflect how much was used in that Particular Tier - For example the 1st Row Tier 1 the 'Daily Balance of $2M is greater than the Range End of 500k - So the daily balance should reflect 500k for Tier 1 (amount used)

 

Desired outcome something like as follows : 

 

TierPortfolioRange StartRange EndDaily Balance (Bal Used)Bal Carried Fwd Next Tier
1AAA05000005000001500000
2AAA50000110000004999991000001
3AAA1000001250000010000010
4AAA25000019999999900

I.E now we can see the daily balance that was used in each range . 

 

 

Note I will often only have 2 tiers for a portfolio however, my daily balance will only stay in Tier 1 as it is small - Any solution will need to catch this scenario - 

 

Sample file attached below 

1 REPLY 1
patrick_digan
17 - Castor
17 - Castor

@Tommy_Alterax I think you could use a standard formula tool to calculate the Daily Balance (Bal Used) like this:

 

max(0,min([Daily Balance]-[Range Start]+[Tier]-1,[Range End]-[Range Start]))

 

 

Hopefully that helps point you in the right direction!

Labels