Problem in implementing Period over Period Analysis

Hello,

I try to follow the metholodgy explained here to compare 2 “time” to hire from differents periods of time :

https://cloud.google.com/looker/docs/best-practices/how-to-create-timeframe-vs-timeframe-analysis-wi...

But the date column in big query is in timestamp format and i can’t use my filters, i see this error message : 

62cf752a-edef-4d9f-a821-937455766098.png

#####################DATE######################
dimension_group: Date {
    type: time
    timeframes: [
      raw,
      date,
      week,
      month,
      year
    ]
    datatype: datetime
    sql: ${TABLE}.date ;;
  }
  

##################Filters#########################
  filter: timeframe_a {
    label: "Période 1"
    type: date_time
    default_value: "1 month ago for 1 month"
  }

  filter: timeframe_b {
    label: "Période 2"
    type: date
    default_value: "2 months ago for 1 month"
  }

  dimension: group_a_yesno {
    hidden: yes
    type: yesno
    sql: {% condition timeframe_a %} ${Date_date} {% endcondition %} ;;
  }

  dimension: group_b_yesno {
    hidden: yes
    type: yesno
    sql: {% condition timeframe_a %} ${Date_date} {% endcondition %} ;;
  }

  measure: TTH_a {
    type: average
    sql: ${Time_to_hire_day} ;;
    filters: [group_a_yesno: "yes"]
  }

  measure: TTH_b {
    type: average
    sql: ${Time_to_hire_day} ;;
    filters: [group_b_yesno: "yes"]
  }
##########################################################################
 

Could you please help me ? Thank in advance

0 0 50
0 REPLIES 0
Top Labels in this Space
Top Solution Authors