Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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?

15 Replies
vinieme12
Champion III
Champion III

Apply the same set to Avg ()

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

Sorry i didn´t understand...

I tried to add

RangeSum(

  Above(

    Count(

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

              account_ticket_id,

              accountYear,

              accountMonth,

              Month,

              Year,

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

but it is not the proper way to do it

vinieme12
Champion III
Champion III

Above(

    Count(

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

              account_ticket_id,

              accountYear,

              accountMonth,

              Month,

              Year,

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

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

It doesn´t work. Doesn´t even appear the bar

vinieme12
Champion III
Champion III

please recheck the field names; I've not used exact field names, as I was typing on phone

Above(

    Count(

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

              account_ticket_id,

              accountYear,

              accountMonth,

              Month,

              Year,

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

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

I did this: (inserted the RangeSum), double check the names but still when i select "accountYear" or "accountMonth" the graph changed...

RangeSum(

     Above(

          Count(

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

               Month,

               Year,

               account_ticket_id,

               accountYear,

               accountMonth,

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