Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Tableau CRM and Einstein Discovery Consultant All Questions

View all questions & answers for the Certified Tableau CRM and Einstein Discovery Consultant exam

Exam Certified Tableau CRM and Einstein Discovery Consultant topic 1 question 46 discussion

The client is trying to create a SAQL query to predict sales in each sales region. They cannot get the query to return any results, but have identified that the enror is in the timeseries statement. They have asked a Tableau CRM Consultant to review the following query and fix any errors. q = load "sales"; q = group q by ('Date_Year', 'Date_Month', 'Region'); q = foreach q generate 'Date_Year', 'Date_Month', 'Region', sum('Sales') as 'sum_Sales'; q = timeseries q generate 'sum_Sales' as 'Forecasted_Sales' with (dateCols=('Date_Year', 'Date_Month', "Y-M"), partition='Region'); q = foreach q generate 'Date_Year' + "~~~" + 'Date_Month' as 'Date_Year~~~Date_Month', 'Region', coalesce('sum_Sales', 'Forecasted_Sales') as 'Sales'; q = order q by ('Date_Year~~~Date_Month' asc, 'type' asc); q = limit q 2000;
Which timeseries statement will fix the query?

  • A. q = timeseries q generate 'sum_Sales' as 'Forecasted_Sales' with (dateCols=('Date_Year', 'Date_Quarter', "Y-Q"), partition='Region', ignoreLast=true);
  • B. q = timeseries q generate 'sum_Sales' as 'Forecasted_Sales' with (length=12, dateCols=('Date_Year', 'Date_Month', "Y-M"), partition ='Region');
  • C. q = timeseries q generate 'sum_Sales' as 'Forecasted_Sales' with (dateCols=('Date_Year', 'Date_Quarter', "Y-Q"), partition ="Region');
  • D. q = timeseries q generate 'sum_Sales' as 'Forecasted_Sales' with (dateCols=('Date_Year', 'Date_Quarter', "Y-Q"), partition ='Region', seasonality=4);
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_saql.meta/bi_dev_guide_saql/bi_saql_statement_timeseries.htm

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
hananetest
8 months, 1 week ago
I think B the length parameter is important : q = load "TouristData"; q = group q by ('Visit_Year', 'Visit_Month'); q = foreach q generate 'Visit_Year', 'Visit_Month', sum('NumTourist') as 'sum_NumTourist'; -- If your data is missing some dates, use fill() before using timeseries() -- Make sure that the dateCols parameter in fill() matches the dateCols parameter in timerseries() q = fill q by (dateCols=('Visit_Year','Visit_Month', "Y-M")); -- Use timeseries() to predict the number of tourists. q = timeseries q generate 'sum_NumTourist' as Tourists with (length=12, dateCols=('Visit_Year','Visit_Month', "Y-M")); q = foreach q generate 'Visit_Year' + "~~~" + 'Visit_Month' as 'Visit_Year~~~Visit_Month', Tourists;
upvoted 1 times
...
pesiqueira
1 year, 7 months ago
Selected Answer: B
lenght is required https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_saql.meta/bi_dev_guide_saql/bi_saql_statement_timeseries.htm
upvoted 2 times
...
snusmumrick
2 years, 2 months ago
Question was on exam 21 August 2022.
upvoted 1 times
...
siddhartha_081
2 years, 8 months ago
Correct answer is B
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...