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

Custom Dimension Using Qliksense

Hi,

I am trying to create custom Dimensions using Value List , the expression i am trying is as below:

valuelist(month(min({<Flag={'Act'}>}YearMonth))&'-'&month(AddMonths(min({<Flag={'Act'}>}YearMonth),2)),
month(AddMonths(min({<Flag={'Act'}>}YearMonth),3))&'-'&month(AddMonths(min({<Flag={'Act'}>}YearMonth),5)))

I have tried static Dimension values by hardcoding but using functions I am trying for the First time not sure if this approach works, in case it does'nt would like to know if there is anyother alternative 

1 Solution

Accepted Solutions
miskinmaz
Creator III
Creator III

You can't use the set analysis  in custom dimensions or calculated dimensions.

One way is try to create a variable where you write the set expression with = sign and then use this variable in value list expression

 

View solution in original post

5 Replies
anushree1
Specialist II
Specialist II
Author

Any suggestions @Vegar , @kaushiknsolanki 

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this.

valuelist('$(=month(min({<Flag={'Act'}>}YearMonth)))&'-'&$(=month(AddMonths(min({<Flag={'Act'}>}YearMonth),2))),
$(=month(AddMonths(min({<Flag={'Act'}>}YearMonth),3)))&'-'&$(=month(AddMonths(min({<Flag={'Act'}>}YearMonth),5)))')

 

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
anushree1
Specialist II
Specialist II
Author

It does'nt work shows '-' as value in dimension column of the table

anushree1
Specialist II
Specialist II
Author

Attached sample doc for reference

miskinmaz
Creator III
Creator III

You can't use the set analysis  in custom dimensions or calculated dimensions.

One way is try to create a variable where you write the set expression with = sign and then use this variable in value list expression