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: 
Not applicable

Dimension limits

Hi;

I have a bar graph. My dimension is week number and my expression is avg(LoadingDuration). I now want my bar graph to only show avg(LoadingDuration) for past 3 weeks only and not to show avg(LoadingDuration) for all the week.

How do l limit my dimensions to past 3 weeks average loading durations?

Regards;

Moses

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Hi, maybe you can try this:

First go to dimension limits tab and check the box which restricts the values and select First 3.

Go to Sort tab: Select State descending and Numeric value descending.

Suppose we are in the tenth week, you will get values 10 9 and 8 on your x axis.

Regards,

Pratik

View solution in original post

5 Replies
dinuwanbr
Creator III
Creator III

Hi,

you can use Dimension Limits to limit the dimension.

BR,

Dinu1

Not applicable
Author

How do l use dimension limits to limit the dimension to only show the last 3 weeks data?

Not applicable
Author

you can add calculated dimension for eg..

if(weekstart(Today(1))-weekno<21,weekno)

where weekno is your dimension

Not applicable
Author

Hi, maybe you can try this:

First go to dimension limits tab and check the box which restricts the values and select First 3.

Go to Sort tab: Select State descending and Numeric value descending.

Suppose we are in the tenth week, you will get values 10 9 and 8 on your x axis.

Regards,

Pratik

HirisH_V7
Master
Master

Hi,

You can use expression like this,

Last 3 Weeks:


Avg({<Date={‘>=$(=WeekStart(Today(), -2))<=$(=Today())’}>} Loading Duration )

Hope this helps ,

Hirish

HirisH