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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adhoc report selection

Hi Community,

I am creating adhoc report which have multiple Dimensions and Expressions but my requirement is User should not have selection more than 10(Dim) / 10(Expr).

Ex:

User can Select maximum 10 only if he select more than 10 dim or 10 expr then error message should appear like 'You have selected more than 10'

1 Solution

Accepted Solutions
Peter_Cammaert
Partner - Champion III
Partner - Champion III

Then the Calculation Condition becomes:

(GetSelectedCount(DimensionSelectionField) <= 10) and (GetSelectedCount(DimensionSelectionField) >= 1) and (GetSelectedCount(ExpressionSelectionField) <= 10) and (GetSelectedCount(ExpressionSelectionField) >= 1)

View solution in original post

4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Use the calculation condition in "General Tab" under chart properties.

You can give condition as below.

if(Getselectedcount(Dimension) or GetSelectedCount(Expression) >10,0,1)

Here Dimension and Expression is the field from which user will select the Dimension and Expression.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Peter_Cammaert
Partner - Champion III
Partner - Champion III

In your Chart Properties->General->Error Messages, define an error message for condition "Calculation Condition Unfulfilled". You can use something like "Only max 10 Dimensions or Expression selections allowed". This message will be displayed if the Calculation Condition returns false.

Now in Chart->Properties->General->Calculation Condition, enter something like:

(GetSelectedCount(DimensionSelectionField) <= 10) and (GetSelectedCount(ExpressionSelectionField) <= 10)

and you're set.

Peter

Not applicable
Author

Hi Peter,

but user shoul select atleast one and not more than 10

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Then the Calculation Condition becomes:

(GetSelectedCount(DimensionSelectionField) <= 10) and (GetSelectedCount(DimensionSelectionField) >= 1) and (GetSelectedCount(ExpressionSelectionField) <= 10) and (GetSelectedCount(ExpressionSelectionField) >= 1)