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: 
ecabanas
Creator II
Creator II

Calculated Dimension

Hi,

I have a table that calculates the total orders. The dimension is week, but unfortunately I have a problem. For present year the calculationare ok, but there are some orders made last week of 2014 that was the first of 2015, and in the table appears weeks from 1 to 30 and data from 51 week!

I wold like to fix this issue doing a calculated dimension that has a conditional: only shows weeks lower than present week.

Any idea?

Many thank's guys

Eduard

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda
MVP
MVP

Either you create Week using LunarWeekName fuction  or use calculated dimension as below

=if(date_Week<= week(Today()),date_Week)

View solution in original post

3 Replies
sasiparupudi1
Master III
Master III

Please post some sample data or application

ecabanas
Creator II
Creator II
Author

See attached the !qvw

Thanks

Kushal_Chawda
MVP
MVP

Either you create Week using LunarWeekName fuction  or use calculated dimension as below

=if(date_Week<= week(Today()),date_Week)