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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
kamielrajaram
Creator III
Creator III

Calculated Dimension

Good day,

I have the following calculated dimension, which is not working can you advise as to what may be wrong

vCalendar = '2011/11/14' and

vPreviousDay = '2011/11/12'

vPreviousDay = if(weekday(today()) = 'Mon',Today()-(date(today())-date($(vCalendar))),Today()-1)

Calculated Dimension

if(date($(vCalendar)) =date($(vPreviousDay)),date($(vPreviousDay)),'Hello')

Thanks in advance

Kamiel

2 Replies
swuehl
MVP
MVP

Are you assigning a value twice to vPreviousDay (a literal and an expression)?

Could you explain what you want to achieve, what the rule is you want to implement?

Thanks,

Stefan

Anonymous
Not applicable

I have the same problem, I currently have sum(total) for 2/22/2012 but I want to show the previous days total whenever the user selects a day.  So example if i am a user and I select Feb 22, 2012, i want the system to show me the previous days total Feb 21st.  Does anyone have any suggestions on what set analysis i should use?