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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
fabdulazeez
Partner - Creator III
Partner - Creator III

Straight Table - Alternate to Dummy Column for Data Restriction

I’m working with a Straight Table where I want to show a few dimensions, but only for 1 month of data (e.g., the latest month). To apply this filter, I added a dummy column with Set Analysis like:

Sum({<Month={'$(=Max(Month))'}>} 1)

Is there a better alternative. Also for straight table with chart exploration options, I couldn’t find a way to lock or prevent users from removing the dummy column, which could lead to incorrect or incomplete data being shown 

 

 

Labels (3)
6 Replies
Anil_Babu_Samineni

If you have already calendar in your data model, why can't this at dimension level?

1) If(MonthField=Aggr(Max(TOTAL MonthField), MonthField), MonthField)

I know the set analysis is better approach, But you could have done at measure level and not in dimension level to improve better performance. 

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
fabdulazeez
Partner - Creator III
Partner - Creator III
Author

Thanks @Anil_Babu_Samineni .

I've provided a simple example above.
Also, do you happen to know if calculated dimensions generally perform better than set analysis in terms of performance?

Additionally, is there any way to prevent users from removing either the calculated dimension or the dummy column with Set Analysis when using a new Straight Table (Char explorartion)

Or
MVP
MVP

Typically the approach to this would be to add the set analysis in the real measures, rather than use a dummy. That way you don't have to worry about your dummy being removed. 

If you're only using dimensions with no measures except the dummy one, you could use NOT Isnull(GetObjectMeasure(0)) as a calculation condition to ensure it's not removed. 

You could create a calculation condition using GetObjectMeasure() to check whether a specific measure is used, though I'm not sure if there's a clever way of doing it outside of brute-forcing as many GetObjectMeasure() functions as there are available measures. 

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

In this case I would suggest using built in FILTERS function where you would set filter on your table to be only for last month (either via expression or static flag on calendar)

This is a fairly new feature so its availability depends on the version you are using. That way your table will always be filtered down to last month regardles of what columns are selected in exploration menu.

Lech_Miszkiewicz_0-1751457391896.png

 

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
fabdulazeez
Partner - Creator III
Partner - Creator III
Author

Yes, I came across this feature in one of Qlik’s recent videos. However, I believe it’s currently available only in Qlik Cloud Analytics. Can someone confirm this?
It looks promising and could potentially address many of the concerns we've been facing.

Or
MVP
MVP


@fabdulazeez wrote:

Yes, I came across this feature in one of Qlik’s recent videos. However, I believe it’s currently available only in Qlik Cloud Analytics. Can someone confirm this?
It looks promising and could potentially address many of the concerns we've been facing.


Correct. It should be included in the upcoming Enterprise version, though, I believe.