Skip to main content
Announcements
Announcing Qlik Talend® Cloud and Qlik Answers™ to accelerate AI adoption! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

non changing dimension

Hi all,

Is it possible to make a dimension not changing at all for any filters?

For example I have the following straight table

MonthQnumsSales
JanQ1234100
FebQ2434100
MarQ234200
AprQ5456500
MayQ565300

For this table if for particular selection we have data for only Mar and Apr

So the table will reduce in size showing only Mar and Apr like this

MonthQnumsSales
MarQ234200
AprQ5456

500

But i want in this manner

MonthQnumsSales
Jan00
Feb00
MarQ234200
AprQ5456500
May00

Keeping the month dimension to be constant not changing.

Is it possible?

Any help would be appreciated

Thanks,

Anupama Jagan

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi All,

I solved it by adding another expression sum({1} Revenue)

Thank you all for your help

View solution in original post

32 Replies
MK_QSL
MVP
MVP

Create a Straight Table

Dimension

Month

Expression

1) IF(SubStringCount(Concat(DISTINCT Month, '|'),Month),Only({<Month>}Qnums),0)

2) IF(SubStringCount(Concat(DISTINCT Month, '|'),Month),SUM({<Month>}Sales),0)

Go to Presentation tab and untick Suppress Zero Values

Anonymous
Not applicable
Author

Hi

Enable " Suppress When Value is Null " & " Show All Values " under Dimensions Tab.

Remove " Suppress Zero - Values " under Presentation Tab

Hope it Helps!!

asgardd2
Creator III
Creator III

Hello!

1. Uncheck "Suppress Zero-Values" on Presentation tab:

2. Create expressions :

     For sales:

     Sum({<Month = >} Aggr(Sum(Sales),Month)

     For  Qnums:

     IF(Count(Qnums)=0,0,Qnums)

Anonymous
Not applicable
Author

Hi Anton ,

I have a calculated dimension

Month

if(Month <= Month(today()),Month)

Expressions are :

CYTD:

if(Month <= Month(today()), rangesum(above(total sum({Year = {$(=Max(Year))}, Met = {"Approved"}>}Revenue), 0, RowNo(TOTAL))))
PYTD
if(Month <= Month(today()), rangesum(above(total sum({Year = {$(=Max(Year)-1)}, Met = {"Approved"}>}Revenue), 0, RowNo(TOTAL))))

I'm not able to incorporate your change in this.

Thanks,
Anupama Jagan
Anonymous
Not applicable
Author

Hi Anil,

Im not getting even after doing it

Thanks,

Anupama Jagan

Anonymous
Not applicable
Author

Hi Manish

I'm not able to incorporate your logic in my expressions. Can you let me know how to go about it?

I have a calculated dimension

Month

if(Month <= Month(today()),Month)

Expressions are :

CYTD:

if(Month <= Month(today()), rangesum(above(total sum({Year = {$(=Max(Year))}, Met = {"Approved"}>}Revenue), 0, RowNo(TOTAL))))
PYTD
if(Month <= Month(today()), rangesum(above(total sum({Year = {$(=Max(Year)-1)}, Met = {"Approved"}>}Revenue), 0, RowNo(TOTAL))))

Thanks for your help

Regards,
Anupama Jagan
MK_QSL
MVP
MVP

Provide sample app here. We will work on it and try to give you solution.

Anonymous
Not applicable
Author

Hi Manish,

I dont have any sample app with me as we work in remote desktop.

Maybe i will provide you sample data . will that be okay?

thanks,

Anupama Jagan

MK_QSL
MVP
MVP

OK