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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
penpayom
Contributor II
Contributor II

Calculated Dimenstion

Hi All,

 

I want to Create List Box (Month/Week),

When i Click Month ,Dimension In chart  must show Data by Month ,

 When i Click week  ,Dimension In chart  must show Data by week

จับภาพ.PNGจับภาพ.PNG

จับภาพ.PNG

Labels (1)
3 Replies
shiveshsingh
Master
Master

What does MONTH signify here? Is it a dimension?

shitijar
Partner - Contributor
Partner - Contributor

Hi,

Try with the Below Expression: 

if(TYPE2='MONTH',MONTH&' '&WEEK)

 

Shetty

PradeepReddy
Specialist II
Specialist II

The calculated dimension showing error, because there is no fields 'Month' or 'Week' in your data model.
First create Month & Week Fields in your script like this(check the creation_date format)...
Month(Creation_Date) as Month,
WeekName(Creation_Date) as Year_Week

now create a calculated dimension like this...
IF(TYPE2='MONTH', Month,Year_Week)