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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Brites
Contributor II
Contributor II

Hide last data point in a combo chart

I am working on a simple visualization in which, commonly, the more recent week of data is incorrect.

Dimension: =week

Value: =sum(sales)

Brites_0-1639476481939.png

 

How can i do so that the plot does not show the latest week?

 

1 Solution

Accepted Solutions
Andrei_Cusnir
Specialist
Specialist

You can use set analysis for your measure:

For example I have the following data:

SCREENSHOT

As you can see we don't want the week 53 as it is incomplete. Therefore, I am using the following Set Analysis:

 

Sum({<[OrderDate.autoCalendar.Week]={"<$(=Max([OrderDate.autoCalendar.Week]))"}>}Sales)

 

And this gives the following chart:

SCREENSHOT

 

As you can see the last week is excluded.

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members. 

Help users find answers! Don't forget to mark a solution that worked for you! 🙂

View solution in original post

1 Reply
Andrei_Cusnir
Specialist
Specialist

You can use set analysis for your measure:

For example I have the following data:

SCREENSHOT

As you can see we don't want the week 53 as it is incomplete. Therefore, I am using the following Set Analysis:

 

Sum({<[OrderDate.autoCalendar.Week]={"<$(=Max([OrderDate.autoCalendar.Week]))"}>}Sales)

 

And this gives the following chart:

SCREENSHOT

 

As you can see the last week is excluded.

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, please mark it as accepted solution to give further visibility to other community members. 

Help users find answers! Don't forget to mark a solution that worked for you! 🙂