Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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)