Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
beck_bakytbek
Master
Master

Show the cumul value and ignoring dimension

Hi Folks,

i got a question, my data look like this:

Month, Yalue

1, 3

2, 10

3, 15

is that possible to create the expression to show cumul value and at the same time to ignore dimensin. my expected output is:

Value  28

Month, 3

 

Now i have this view

Value, 3, 10, 15

Month, 1, 2, 3

 

i want to show within my barchart only this view:

Value  28

Month, 3

 

Does anybody have any idea how to resolve this issue?

Thanks a lot

 

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

HI @beck_bakytbek 

Might be, try like below

If(Dim =Maxstring({<Dim={"=Sum(Expenses)>0"}>}Total Dim), Sum(Total Expenses))

MayilVahanan_0-1615780228200.png

 

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

View solution in original post

10 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Dimension: Max(Month)

Measure: Sum(Value)

-Rob

beck_bakytbek
Master
Master
Author

Rob thanks a lot for your reply and time,

i have a question, what if, i have 2 expression: with one 1 expression i want to show all values for each month, and with second expression: i want to show my cumul.value = 28. for instance:

Dim: Month                                  1 , 2, 3

1 Expr (Sum (Budget))             5, 7, 12

2 Expr (Sum (Expenses))          -, -, 28

if i have the 2 expressions, then i can not to use the Dim (Month) = Max(Month).

i hope i explaned well, do you have idea how to resolve this issue? Thanks a lot

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

beck_bakytbek
Master
Master
Author

Hi Rob 

thanks a lot for your time and feedback, i implemented your suggestion, but it does not work (see screenshot)

 

beck_bakytbek_0-1615551457784.png

 

Do you have any ideas?

Thanks a lot

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I'm not understanding. The second expression (red bar) seems to be showing total expenses.  Can you draw a sketch of what you are looking for?

-Rob

beck_bakytbek
Master
Master
Author

Hi Rob,

thanks a lot for your reply,

i want to have the red bar as total only in month: Mar 21 =  Value = 28.  like this (see screenshot)

beck_bakytbek_0-1615580121162.png

 

Thanks a lot

Bek

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

For the cumulative expenses bar try:

if (Dim = max(TOTAL {<Dim = {"=Expenses > 0"}>} Dim), Sum(TOTAL Expenses))

-Rob
http://masterssummit.com
http://qlikviewcookbook.com
http://www.easyqlik.com

beck_bakytbek
Master
Master
Author

Hi Rob, again thanks a lot for your time and your help,

i implemented your suggestion: 

beck_bakytbek_0-1615747234113.png

but this expression does not work (see screenshot)

beck_bakytbek_1-1615747359511.png

 

or am i missing something ?

Thanks a lot

Bek

 

 

MayilVahanan

HI @beck_bakytbek 

Might be, try like below

If(Dim =Maxstring({<Dim={"=Sum(Expenses)>0"}>}Total Dim), Sum(Total Expenses))

MayilVahanan_0-1615780228200.png

 

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