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: 
BI_Dev
Creator II
Creator II

Total function

 ID Year  EXP New Exp
123 2022 $ 100,000 $ 100,000
123 2023 $ 0 $ 100,000
123 2024 $ 0 $ 100,000
123 2025 $ 0 $ 100,000
456 2015 $ 200,000 $ 200,000
456 2016 $ 0 $ 200,000
456 2017 $ 0 $ 200,000
456 2018 $ 0 $ 200,000
456 2019 $ 0 $ 200,000
456 2020 $ 0 $ 200,000

 

Hi - I have the above data...want to create new column 'New Exp' as above, where same Expense amount is diaplyed for all years per lease.How can I do that ?

 

Thank you much.

Labels (5)
1 Solution

Accepted Solutions
BI_Dev
Creator II
Creator II
Author

Resolved this usimg below expression

=Aggr(Sum(TOTAL <[D]> [Exp]), [ID], Year)

View solution in original post

1 Reply
BI_Dev
Creator II
Creator II
Author

Resolved this usimg below expression

=Aggr(Sum(TOTAL <[D]> [Exp]), [ID], Year)