title: how to calculate age group in google data studio
body: <p>I want to have a calculated field for the age group. I have below code but I keep receiving the error message: Failed to create field. Please try again later. </p>
  
  <pre><code>CASE
  WHEN AGE &lt; 19 and age &gt; 0 THEN "BELOW 18"
  WHEN AGE &gt; 18 AND AGE &lt; 26 THEN "18 ~ 25"
  WHEN AGE &gt; 25 AND AGE &lt; 31 THEN "26 ~ 30"
  WHEN AGE &gt; 30 AND AGE &lt; 36 THEN "31 ~ 35"
  WHEN AGE &gt; 35 AND AGE &lt; 41 THEN "36 ~ 40"
  WHEN AGE &gt; 40 THEN "ABOVE 40"
  when age is NULL THEN "Not Provided"
  else "Not Provid"
  END
  </code></pre>
  
  <p>where age is calculated as below</p>
  
  <pre><code>FLOOR(DATE_DIFF(created_at,birthday)/365)
  </code></pre>
  
  <p>can anyone help me with this? thanks a lot!</p>