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: 
Not applicable

Multiple dimensions

Hey Everyone, good afternoon!

I have a chart which indicates the produccion rates by (Day, Month or Year. It's a hierarchical group.); I want to accumulate only when the dimension is day. Is it possible?

I though to sum (in the script) and accumulate it by dimensions, and make a condition in the chart like that: "If dimension select is day so... if its month so...).

Can you guys help me?

Sincerely, Luiz Bisco

1 Solution

Accepted Solutions
swuehl
MVP
MVP

You can use GetCurrentField( GroupName ) to get the active group dimension field. Use this as condition:

=If( GetCurrentField( YourGroupName ) = Day, Sum(Value), ...)

View solution in original post

3 Replies
Not applicable
Author

use dimensionality() or secundarudimensionality()

if(dimensionality() =1,....

Anonymous
Not applicable
Author

Maybe something like this?

=If(

    GetCurrentField([NameOfYourGroup])='Day',

    Sum([YourField]),

    [YourField]

)

swuehl
MVP
MVP

You can use GetCurrentField( GroupName ) to get the active group dimension field. Use this as condition:

=If( GetCurrentField( YourGroupName ) = Day, Sum(Value), ...)