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: 
rsdhavle
Creator III
Creator III

Passing drill down groups in expression

There is straight table chart and all dimensions are drill down groups. Suppose i have to add Calculated dimension which would be applicable on all these drill down groups what would be the best approach.

6 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Can you come up with a sample app and example?

Regards,

Jagan.

rsdhavle
Creator III
Creator III
Author

Example:

In Straight table chart, Dimensions are as follows

Drill Group1

Drill Group2

Drill Group3

Drill Group4

Now in this same dimension tab i want to add one calculated dimension and in such a way that the condition should be applicable on all of the above drill down groups

Anonymous
Not applicable

Rohan

Have you looked at using the GetCurrentField() function ?

Below copied form the Help:

getcurrentfield (GroupName)

Returns the name of the currently active field in a group.

Example

getcurrentfield( myGroup )



Best Regards,     Bill

rsdhavle
Creator III
Creator III
Author


Hi Bill,

Thanks but its not working for me. I am using it in the below expression:

 

if

((div(aggr(RowNo(),GetCurrentField(MyGroup),$(Variable4))+1)=$(Variable1) ,div(aggr(RowNo(),GetCurrentField(MyGroup)),$(Variable4))+1, null())

But it does not affect chart in any way.

Anonymous
Not applicable

Rohan

The bracket at the beginning, after your if is red.  Should it be removed ?

Best Regards,     Bill

rsdhavle
Creator III
Creator III
Author

yup that should be removed