Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [saql]

SAQL - Salesforce Analytical Query Language

0
votes
0answers
15 views

Einstein Analytics - How to look for an aggregate value without the use of aggregate functions?

I have two columns in my table, one called Week_Start, and one called Week_End. This data spans several months and years and is constantly appended to. I have no direct control over this data I'm ...
0
votes
1answer
11 views

SAQL calculate average case close rate for einstein

Scenario So I want to display average case closing rate(for now in minute) on dashboard. What I've done So if I'm not wrong I can calculate the difference time like (closed date - created date) ...
0
votes
0answers
12 views

Einstein Analytics - Limit dashboard results to only subset of dataset from the most recent day

I am creating a dashboard to display the most recent day's worth of data. I have a sfdcDigest localized copy of a SFDC object that includes over a year's worth of records. I have a dataflow to create ...
1
vote
0answers
9 views

Global variable using SAQL

Can global variables be used with SAQL? How can I see the value of the global variables in Wave Analytics?
0
votes
0answers
15 views

SAQL statement fill does not support Week in dateCols

Analytics SAQL Reference says it supports the week for dateCols in fill statement of SAQL, however it does not support weekfield. Salesforce doc https://developer.salesforce.com/docs/atlas.en-us....
1
vote
0answers
13 views

SAQL Date format conversion

I am pulling in a date field from a secondary (Japan) SFDC org into our native org. The format in the Japan org shows it as just a date (yyyy-MM-dd) but when I look at the date in the data connection ...
1
vote
0answers
25 views

Is it possible to save/persist data from an Einstein Dataset back to Salesforce?

We are building a Lightning application that will be used to show Einstein consolidated data to users. We want to either consume this data directly from Einstein (we know we can do that with Wave SDK ...
0
votes
1answer
51 views

Analytics Facet issue - Syntax Error after token ) :: ilter q by (());

I have a SAQL step in my dashboard that goes something like this: q = load "aDataset"; q = filter q by 'A__c' == "true" && !('B__c' >= "-"); q = filter q by 'Type__c' != "Organization"; ...
0
votes
2answers
77 views

Replace null values in JSON

I'm using a compare table and some values in my datasets doesn't exists. So when I'm trying to calculate the percentage between two rows I got no values. For example I got this image : In the forst ...
0
votes
0answers
44 views

Get previous year date of today

I would like to compare the revenues from the previous and current year but not all the previous year. I want to compare until this date. I have something like that : q_A = filter q by date('...
0
votes
1answer
28 views

preconfigure filter affecting widget with disabled apply global filters

I have embedded a wave dashboard on a visualforce page. In my dashboard I have charts that "Apply global filters is disabled". What happen is when I view the dashboard on the visual force page, and ...
0
votes
1answer
24 views

Bind the Result of one dataset to an another

I have two steps. One with my Holidays group by years and month created with a single dataset with one column "Holidays" with all date of holidays in 2018 and 2019. The second one is my Amount per ...
0
votes
1answer
54 views

Filter dataset by column from an another dataset

I want to filter my Date datasets by Holidays datasets with something like that : a = load "Date_Test"; b = load "Holidays_Test"; b = foreach b generate 'Holidays' as 'Holidays'; a = filter a by '...
0
votes
1answer
61 views

Filter Dataset with only Work Days

I would like to get the days from Monday to Friday (except holidays) in my SAQL queries. For now I only have Opportunity dataset with Amount and all rows related to CloseDate (Date, Year, Month, Day, ...
1
vote
1answer
87 views

Salesforce Analytics Dataflow - Aggregating datasets?

Assume I have a dataset like such: Cart Data ---------- oId cId iId $$ 1 C1 . 2 1 C1 . 3 1 C2 . 3 2 C1 . 1 3 C2 . 3 3 C3 . 4 4 c4 . 5 4 c4 . 5 5 c2 . 4 6 ...
0
votes
1answer
19 views

Get number of CloseDate_Day in a group of CloseDate_Month

I want to get the sum of Amount of the company per month (CloseDate_Month) and divide this sum by the number of CloseDate_Day in this month. q = load "Test"; q = group q by 'CloseDate_Month'; q = ...
0
votes
0answers
179 views

Einstein Analytics - SAQL - Compute expression in Dataflow - Period over Period formula

I have a formula field I need to create in Data flow using a Compute expression. It needs to group by our 'Record_ID' and compare this weeks data to last weeks. The data i want to compare is labeled ...
-1
votes
1answer
45 views

SAQL to find the remaining days in the year?

I want to found the count of days remaining in the year in SAQL . q= foreach q generate daysbetween(toDate(date_to_epoch(year_start_day))-now()) as 'daysRemaining' I want apply formula 365-now() in ...
0
votes
0answers
21 views

Dynamic Filter in APEX SDK Query

In below query inside filter if i specify the direct value it works fine, ConnectApi.LiteralJson result = Wave.QueryBuilder.load('0Fb0v0000000vtbCAA', '0Fc0v000001QGWOCA4') .filter('Field == \"...
0
votes
0answers
42 views

Filter Data Based On Values Matching In Two Columns

Is it possible to filter data based on values in two columns matching in Einstein Analytics? For example, I have one column named BO Qty and another named Supply Qty. If BO Qty is 1 and Supply Qty is ...
0
votes
1answer
54 views

Einstein Analytics data binding to boolean value

I am trying to conditionally hide tabs based on the output of a certain table. Currently I am attempting to set the navigationHidden property of the page to false like so: "navigationHidden": "{{cell(...
0
votes
1answer
46 views

Wave Analytics Filter by Formula field

Is it possible to filter the rows based on the formula fields. I created a table and I only need to show rows that is not in <=-25% && >= 25%.
0
votes
1answer
60 views

SAQL to generate a field not in a group by statement

I'm a bit of a beginner to SAQL. I have been tasked with maintaining a fairly elaborate dashboard and data flow and have been asked to add some features to it. There is a lens that displays a chart ...
0
votes
2answers
139 views

How to convert decimal to percentage in saql?

How to convert decimal to percentage in saql?
0
votes
0answers
54 views

Wave Analytics JSON Filter SAQL

I have a problem when editing a SAQL in wave. When I edited SAQL and update the chart the curreny symbol and comma is remove. Is there a way to add the currency and the comma. What I already did is ...
0
votes
0answers
31 views

Do Einstien Analytics Support Long text area field filter

I have a saql which is filtered using Long Text Area. When I remove the field the query is working fine but when it is included, it is throwing this error Query Exception is failing Please find ...
0
votes
0answers
24 views

Co-group fields from three objects in Wave Analytics

I have three objects viz., qACC , qCON and qOLC. Now from these three objects, I have different fields as follows qACC- 'Country', 'Year','Month'; qCON- 'Country__c','PROC_YR','PROC_MO'; qOLC- '...
0
votes
0answers
20 views

Add Custome Relative filter Einstein Analytics studio

Is it possible to add another choice on the date filter? like creating new Section Called "Date Ranges". Under "Date Ranges" we have choices like "S1", "S2", or "S3". If I select S1 it will filter ...
0
votes
0answers
34 views

Migration of Old Wave Dashboard to new Dashboard

As salesforce old wave dashboards are getting expired in June'19, we have around 19 dashboards to convert to new dashboard design. As the old widgets and other components are not editable in old ...
1
vote
1answer
739 views

SAQL vs SOQL vs SOSL vs SQL? [closed]

I have recently come across SAQL and I'd like to understand the differences between all the different ways to query against Salesforce APIs. The new einstein branding is too complex to get my head ...
0
votes
1answer
358 views

How to check “does not contain” in saql?

I have written my saql like q = load "Opportunities"; q = filter q by !('Opportunity.Name' in ["test","TEST ","Test"]); q = group q by 'Opportunity.Name'; q = foreach q generate 'Opportunity.Name' ...
1
vote
1answer
504 views

Date format in SAQL

I have a requirement in Wave Analytics where I need to fetch records from Previous year when current year is completed. I have a field named Processing Year. It now fetches 2017 records which we have ...
0
votes
0answers
89 views

Need help in SAQL - computeRelative Transformation

Context - running a report on caseHistory object, where data is grouped by caseId (ascending) and then Date/time difference of CreatedDate and previous rows CreatedDate has to be captured at each row ...
0
votes
1answer
116 views

Salesforce Analytics (SAQL)

I would like to pass current year( ["current Year"]) and current month ( ["current month"]) as the dynamic value for month and year instead of the hard coded value . Please let me know how I will ...
0
votes
0answers
98 views

Add row numbers to Query in Wave

I'd like to be able to add a column in to display a row number and summary in Wave SAQL. I have the summary but I can't find anything to help me display the row. Is this possible and if so how can I ...
4
votes
1answer
89 views

After modifying dashboard SAQL in template downstream apps fail to create

What we have done: Created a trivial Einstein Analytics app with the most simple dataflow and dashboard. Created a template for this app Successfully created a (downstream) app from this template (to ...
1
vote
1answer
278 views

SAQL: How to group by string field on whether it is NULL or NOT NULL

As mentioned in the subject I need to group a string field's data by whether its empty or not empty. How can I do this with SAQL? Do I need to create a boolean variable? and group by that?
1
vote
0answers
199 views

Einstein Analytics Binding statement for Year to Date where date is listselector

I have a list selection for Production Date (Year--Month for ease of selection). I have a number that is the credits that should be filtered year to date based on the selected Production Date. I ...
2
votes
3answers
204 views

Dealing with Daylight Savings Time in Einstein

I'm in the UK and having issues importing dates into Einstein due to them being in UTC format while we're currently in UTC+1 due to Daylight Savings Time. I know I need to add some compute nodes to my ...
0
votes
0answers
187 views

Static Filter in SAQL

I wrote a SAQL query with a joined dataset and I want both the left and right datasets to to be filtered dynamically using another widget's selection value. example: q = filter q by 'Account-Name' ...
0
votes
0answers
42 views

SAQL Date PY-MTD

I'm having trouble with relative dates. Problem is I don't understand how those dates are translated into absolute values. Looks like my second param is effectively less than the first... Here is my ...
0
votes
0answers
144 views

Error when trying to loop through a SAQL query in apex

I'm trying to loop account ids through a SAQL query and store the results from the query into a list. However in the loop, the query executes for only the first id in the list fetched, for the second ...
0
votes
1answer
318 views

Group is not a dimension 'Field__c'

Hello I have the following problem, in Analytics I try to group my data set for a specific field and it does not allow it, I get an error Group is not a dimension 'Field__c' What is this error? ...
0
votes
2answers
404 views

It is possible to make a sum under some criteria Wave Analytics

I'm stuck with a problem and I want to make a sum only under certain criteria, for example: Add the Total field per month and then take the average of the last 3 months ie sum (total) -> if month = ...
0
votes
1answer
38 views

How to prevent a filter in the UI from affecting one of my tables

I have the following problem. I have a Data Set A in which I have created several charts with their tables. There is a filter panel at the top where any change you make to these filters is reflected ...
2
votes
0answers
142 views

Faceting Not Working Within Dataset - Einstein Analytics

I am editing a dashboard in Einstein Analytics. It contained 5 charts, all from the same datasource, and they all faceted between one another when selections were made. I was asked to change the top ...
2
votes
2answers
182 views

Can complex (Variance) analysis be done in Einstein Analytics?

Background Every month we copy revenue data in our from their original objects (complex normalized tree of related objects) into something we call a snapshot. A denormalized flat table (Custom object)...
0
votes
1answer
441 views

Change chart color from a step using a SAQL query

In Einstein Analytics, is it possible to change the colour of the bars of a horizontal chart, when the step uses a SAQL query and measure bindings? I'ved tried modifying the XMD, however it doesn't ...
1
vote
0answers
35 views

SAQL - Unnest Array to Rows [closed]

Is there a way using SAQL to unnest an array into multiple rows? For example, my output is ['abc', 'def', ghi'] and I would like to end up with 'abc' 'def' 'ghi'
0
votes
1answer
98 views

How to get row with rows salesforce opportunity id from a dataset of Opportunity History(Left) and opportunity(Right)

Below is the SAQL being tried by me. q = load "RELAOpportunityDataset"; q = filter q by 'Opportunity.OpptyRecType.Name' == "RELA Opportunity"; q = foreach q generate q.'Opportunity.Id' as '...