Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Select a dimension, time

Hello,

I´m already have a few graphs created that use the dimension time like the years of the data.

This is my model:

model.PNG

I would like that when I select "Year" only affect the graph that i want and doesn´t alter the others. And the same for the dimension "accountYear".

Better yet, if possible, then i select the "Year" 2016 also select "accountYear" 2016, and then only affect the graph with the corresponded dimensions.

PS: some graph have the dimension "Year" and others the dimension "accountYear".

What should I do?

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Try

Avg({<Year,Ticket_create_time>} Aggr(Sum( {<Year,Ticket_create_time>} account_time_unit), ticket_id,accountMonth, accountYear ))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

15 Replies
kkkumar82
Specialist III
Specialist III

Use Alternate States for your filter and chart

vinieme12
Champion III
Champion III

one option is edit your set expressions to ignore selections on those fields as below

For example, a chart using dimension accountyear

Count(account_id) >>   CHange to   >> Count( {<Year>} account_id)    << This will ignore selections made on Year Field

use vice versa for chart with Year as Dimension add {<accountYear>} to the set

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
satheshreddy
Creator III
Creator III

Hi Rafael,

use the alternate states,

or

using Sets:

which dimension you are using the chart, except that and remaining filters u can ignore like below.

sum({<year=,[accountYear]={$}>}sales)

Regards

Sathish

Not applicable
Author

Its not correct it still change.

This is my measure:

Avg(Aggr(Sum( {<Year>} account_time_unit), ticket_id,accountMonth, accountYear ))

Didn´t to anything

vinieme12
Champion III
Champion III

Try

Avg({<Year,Ticket_create_time>} Aggr(Sum( {<Year,Ticket_create_time>} account_time_unit), ticket_id,accountMonth, accountYear ))

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Not applicable
Author

Probably i didn´t understand right.

I did this: Avg(Aggr(Sum( {<Year=,accountYear={$}>} account_time_unit), ticket_id,accountMonth, accountYear ))

on a graph where the dimension was accountMonth, it didn´t display the graph

Not applicable
Author

Thankyou, it worked.

Capture1.PNG

This is the graph, also do you know a way that the selection doesn´t change when i select an accountMonth. So that it doesn´t appear only a dot. I prefer like this, all accountMonth

Not applicable
Author

No need, already figured out:
Avg({<Year,ticket_create_time, accountMonth = {$(AllMonths)}>} Aggr(Sum( {<Year,ticket_create_time, accountMonth = {$(AllMonths)}>} account_time_unit), ticket_id,accountMonth, accountYear ))

Where AllMonths is 'Jan', 'Fev, ....

Thanks anyway

Not applicable
Author

Hello vinieme12

Thankyou for your help.

Now i am trying to replicate your answer to other graphs but i´m not being succesfull, could you explain me the logic behind it?

New i´m trying to the Qlik doesn´t do nothing when i select "accountYear" and "accountMonth" to this measure:

RangeSum(

  Above(

    Count(

              {$<status_name = {$(vPendente)},

              Month,

              Year,

              MonthYear = {"$(='<=' & Date(Max(MonthYear), 'MMM-YYYY'))"}>} ticket_id), 0,  RowNo())) * Avg(1)

PS: the dimension is "Year"