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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Nickolay1
Contributor III
Contributor III

Restrict values to be shown on x-axis

Hi all,

I would appreciate if you could help me with this one. Based on the attached file I need to have a chart that has dimension for x-axis from the column Next 3 months. But the dimensions should be limited only to cells that are in the same row with the cells 01.01.2023 from the column Data Month – Year (current cycle). I.e. on the x-axis we should have Feb, Mar and Apr. This file will be appended every month and therefore Next 3 months dimension should be dynamic, i.e. always linked to the current cycle. Column Next 3 months will be populated accordingly. Therefore during the next cycle (Data Month – Year  01.02.2023) x-axis should have Mar, Apr and May.

 

Labels (4)
1 Solution

Accepted Solutions
KGalloway
Creator II
Creator II

Would something like the following work?

I used a dimension value =if(year([Data Month - Year]) = year(today()) and month([Data Month - Year]) = month(today()), [Next 3 Months])

I put in a dummy measure = 3.

KGalloway_0-1675458468000.png

 

View solution in original post

2 Replies
KGalloway
Creator II
Creator II

Would something like the following work?

I used a dimension value =if(year([Data Month - Year]) = year(today()) and month([Data Month - Year]) = month(today()), [Next 3 Months])

I put in a dummy measure = 3.

KGalloway_0-1675458468000.png

 

Nickolay1
Contributor III
Contributor III
Author

Thanks a lot! It works perfectly 🙂