Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
beck_bakytbek
Master
Master

Cumul Value within stacked barchart

Hi Folks, 

i got a question, my datatable does look like:

MonthYearProjektBudgetExpenses
Jan - 2021A53
Feb - 2021A153
Mar - 2021A20 
Apr - 2021A25 
Mai - 2021A30 


i try to show the cumul.value for expenses like (see screenshot), but i didn't achieve the expected output,

beck_bakytbek_0-1615461684891.png

 

 

I am using thix expression: Sum({<Year =  {"<=$(=Today())"}>}), but it does not work

Does anybody have any idea, how to solve this issue?

Thanks a lot

Bek

 

 

Labels (1)
3 Replies
MayilVahanan

HI @beck_bakytbek 

If you want to display expenses only for current Year & Year as Dimension, try like below

If(Year=Year(Today()), Sum(Total Expenses) )

O/P:

MayilVahanan_0-1615458410078.png

 

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
beck_bakytbek
Master
Master
Author

Hi MayilVahan,
i think, i explained with wrong example, instead the Dim: Year = 2019 i am using the Dim: Jan- 2019

MayilVahanan

Hi

Try like below

LOAD *, Month(Date(Date#(Left(MonthYear,3),'MMM'),'MMM'))*1 as MonthNum INLINE [
MonthYear, Projekt, Budget, Expenses
Jan - 2021, A, 5, 3
Feb - 2021, A, 15, 3
Mar - 2021, A, 20,
Apr - 2021, A, 25,
May - 2021, A, 30,
];

If(Month(Today())-1 = MonthNum, Sum(Total Expenses))

o/p: Its display overall expense only for Previous month. You can change expression depends on ur requirement if its changes

MayilVahanan_0-1615523064600.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.