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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hari_sreen123
New Member

Adding Amount into appropriate Aging Bucket Columns

Greetings,

 

I have already created a column that has Age. I want to create columns like '1 - 30', '30 - 60' and add the amount based on the Days past (Age). I'm not sure if I should use Custom columns, Conditional columns, or DAX functions. Any help would be greatly appreciated. 

 

 

The third and fifth rows are good examples of what I want to do. Thank you! 

hari_sreen123_0-1623959561472.png

 

1 ACCEPTED SOLUTION
HashamNiaz
Solution Sage
Solution Sage

Hi @hari_sreen123 !

You can create 4 new columns using following DAX code;

 

1 - 30 = IF(Table[Age] >= 1  && Table[Age] <= 30, Table[Amount], 0)

31 - 60 = IF(Table[Age] >= 31  && Table[Age] <= 60, Table[Amount], 0)

61 - 90 = IF(Table[Age] >= 61  && Table[Age] <= 90, Table[Amount], 0)

91 - 120 = IF(Table[Age] >= 91  && Table[Age] <= 120, Table[Amount], 0)

 

 You can replace Table with your table name, [Age] is the column which you used for calculating Days past, and [Amount] is a column which you want to assign.

 

Regards,

Hasham

View solution in original post

1 REPLY 1
HashamNiaz
Solution Sage
Solution Sage

Hi @hari_sreen123 !

You can create 4 new columns using following DAX code;

 

1 - 30 = IF(Table[Age] >= 1  && Table[Age] <= 30, Table[Amount], 0)

31 - 60 = IF(Table[Age] >= 31  && Table[Age] <= 60, Table[Amount], 0)

61 - 90 = IF(Table[Age] >= 61  && Table[Age] <= 90, Table[Amount], 0)

91 - 120 = IF(Table[Age] >= 91  && Table[Age] <= 120, Table[Amount], 0)

 

 You can replace Table with your table name, [Age] is the column which you used for calculating Days past, and [Amount] is a column which you want to assign.

 

Regards,

Hasham

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.