Meliorainsights.com
  • Home
  • Tableau CRM
  • Blog
  • Non-Profits
  • Our Clients
  • About
  • Trading Studio

​Meliora Insights, LLC

​Data Cloud | CRM Analytics  (TCRM / Einstein Analytics) Consulting
​meliora - 'for the pursuit of the better'


A blog series distilling quantitative concepts /use-cases in CRM Analytics  (Einstein Analytics).

Picture

Case statement in a compute expression to backfill null values or to effect binning.

3/3/2021

0 Comments

 
Here is a use case where null values are backfilled with 'unspec' or different texts depending on certain values of a field called timeUntil.Using a compute expression with a text type, enter the statement in the SAQL expression.
case
when 'Date_Time_Priority_Assigned__c'  is null then "Unspec"
when 'Time_Until_Prioritized_Days__c'  >0 and 'Time_Until_Prioritized_Days__c'  <=1  then "Prioritized w/in 24 Hrs."
when 'Time_Until_Prioritized_Days__c' >1 and  'Time_Until_Prioritized_Days__c'  <= 2
then  "Prioritized within 48 Hrs."
when 'Time_Until_Prioritized_Days__c' >2
then  "Prioritized after 48 Hrs."  
else "Unspec" end
0 Comments



Leave a Reply.

    Archives

    June 2025
    April 2025
    January 2025
    November 2024
    August 2024
    April 2024
    March 2024
    February 2024
    January 2024
    December 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    December 2022
    October 2022
    September 2022
    July 2022
    April 2022
    March 2022
    January 2022
    November 2021
    June 2021
    April 2021
    March 2021

Site powered by Weebly. Managed by Hostwinds
  • Home
  • Tableau CRM
  • Blog
  • Non-Profits
  • Our Clients
  • About
  • Trading Studio