Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikwiz123
Creator III
Creator III

Assign Cost to Years

Here is my sample data:

qlikwiz123_0-1608764352949.png

 

Expected Output:

qlikwiz123_1-1608764385593.png

I need to assign Cost to every year from Start year to end Year from the Date.

Cost per ID is 4. Since Year - 2021 has 6 IDs, Cost for 2021 should be 4x6=24.

Since there are no IDs for the year - 2022, Cost for 2022 should be 0.

Similarly, for 2023, Cost is 0 since there are no IDs in that year.

For Year - 2024, the cost is 4 since there is only one ID in that Year.

How do I achieve this and show this in a Straight Table and a Bar Chart?

I have attached my Sample QVW for reference. Any help is highly appreciated 🙂 

 

Labels (1)
1 Solution

Accepted Solutions
Taoufiq_Zarra

@qlikwiz123 

Maye be like attached

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

2 Replies
Taoufiq_Zarra

@qlikwiz123 

Maye be like attached

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
qlikwiz123
Creator III
Creator III
Author

@Taoufiq_Zarra  Thank you so much