Group By Filter for Dashboards

Hi Folks,

Is there a way to add a 'Weekly' 'Monthly', or 'Quarterly' filter to a dashboard that would aggregate best modes accordingly (when written dynamically) within charts by those groups against a date field?

The equivalent of the graph by feature in the analyzer:

I want someone to be able to select weekly and see an aggregation of a count by each week.

Kind regards,

Best Answer

  • MichelleH
    MichelleH Coach
    Answer ✓

    @NateBI Yes, you can use the "Choose Date" drop down on the top right corner of the dashboard to change the date range and groupings. As long as your cards are grouped by a date dimension and the "Hide Date Range" box is unchecked in analyzer, the "Graph by" setting will apply to those cards.

Answers

  • MichelleH
    MichelleH Coach
    Answer ✓

    @NateBI Yes, you can use the "Choose Date" drop down on the top right corner of the dashboard to change the date range and groupings. As long as your cards are grouped by a date dimension and the "Hide Date Range" box is unchecked in analyzer, the "Graph by" setting will apply to those cards.

  • @MichelleH Sweet - any chance this can be linked to a filter visual instead?

  • ST_Superman
    ST_Superman Domo Employee
    edited April 2023

    You can change the dates based on presets… not sure if you can change the graph by options with a filter card though. Maybe a feature request?

  • @NateBI You would likely need to set up a variable control for this and replace the date dimension each card with this beast mode:

    case 
      when `Date Grouping (Var)` = 'Week' then concat(date_format(`Date`,'%m/%d/%y'))
      when `Date Grouping (Var)` = 'Month' then concat(date_format(`Date`,'%M %Y'))
      …
    end
    

  • @MichelleH very interesting thanks!