Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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

1 Solution

Accepted Solutions
Kushal_Chawda

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

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

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