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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
surtex
Contributor III
Contributor III

Qlik Sense: Total value on table without one column

Hey Qlik Member,

i have the following problem: 

I would like to show the YTD Value without the Monthly Plan Column and if possible I like to show the YTD Value (Total) on the right side. 

Can i write an expression for the total value in a table or should I create a seperate total field (YTD). If I must create an seperate field, how would you go about it?

The table:

1111111.png

The Dimensions and Measure:

surtex_1-1661867880576.png

 

Thank you 🙂 

 

Labels (4)
7 Replies
Or
MVP
MVP

Assuming your formula for EBT is something like Sum(EBT), you could try using something like:

if(Count(distinct Monat)>1,Sum({<Monat -= {'Monthly Plan'} >} EBT), Sum(EBT))

surtex
Contributor III
Contributor III
Author

Where should I write this expression? Because the total field adds up automatically in the background.

Or
MVP
MVP

This would replace your existing expression (which in my example was Sum(EBT) but might be something else entirely, in which case you'd need to adjust accordingly)

surtex
Contributor III
Contributor III
Author

Oh okay, I understand. 

 

surtex_0-1661935192591.png

 

The function does not count for this or? Is there a way to store a calculation for this "Total" button or do I have to store YTD as a dimension in the calendar and facts data??

Or
MVP
MVP

I'm sorry, I don't understand that last question (and I don't speak German so the screen capture doesn't help).

surtex
Contributor III
Contributor III
Author

I have activated the field Show Total value on dimension month in the pivot table (the values below YTD). I have named the total values (YTD). You can understand me now? 🙂 

Or
MVP
MVP

I'm afraid I still don't understand what you are asking.

The expression I suggested simply counts the number of months, and applies a different sum if the result is 1 (which means we're within the context of a single month, so not a total) or if the result is more than 1 (which means we're inside the total since the inner part of the pivot is always specific to one month). It replaces the previous expression that you were using. This doesn't have anything to do with enabling the total, picking out a label for the total, or anything of that nature.