Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
penpayom
Contributor
Contributor

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

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)