Advanced Analytics in Conversational Analytics translates your natural language questions into Python code and executes that code to provide advanced analysis and visualizations. Advanced Analytics is available for Conversational Analytics data agents in both Looker (original) and Looker (Google Cloud core) instances.
In contrast to standard SQL-powered BI experiences, Advanced Analytics supports a wide variety of data analytics—from basic computations and charting to more advanced tasks like time series forecasting. Advanced Analytics enhances Conversational Analytics by enabling users to perform these types of advanced analysis, which otherwise would typically require specialized knowledge of advanced coding or statistical methods.
This page describes how to enable Advanced Analytics for a Looker instance and how to use Advanced Analytics with a Conversational Analytics data agent.
Learn how and when Gemini for Google Cloud uses your data.
Before you begin
To use Advanced Analytics, you must meet the requirements for using Conversational Analytics in Looker, including permissions to create and use data agents:
- To use Advanced Analytics with a Conversational Analytics data agent in a Looker (original) instance, your instance must be on Looker 25.18 or later.
Enable Advanced Analytics
This section describes how to enable Advanced Analytics in the following platforms:
- Looker (original)
Looker (Google Cloud core)
Looker (original)
Enable Advanced Analytics in Looker (original)
In the Looker (original) instance, a Looker admin must follow these steps to enable Advanced Analytics and make it available to Conversational Analytics users:
- In the Admin panel, navigate to the Platform section and select the Gemini in Looker page.
- Under Gemini in Looker enablement, turn on the Enable Gemini in Looker setting.
- Under Enable Gemini in Looker, turn on the Conversational Analytics setting.
- Under Conversational Analytics, turn on the Advanced Analytics setting. When this setting is enabled, data agent creators can choose to enable Advanced Analytics for all conversations with their data agents.
Looker (Google Cloud core)
Enable Advanced Analytics in Looker (Google Cloud core)
In the Looker (Google Cloud core) instance, a Looker admin must follow these steps to enable Advanced Analytics and make it available to Conversational Analytics users:
- In the Admin panel, navigate to the Platform section and select the Gemini in Looker page.
- Under Gemini in Looker enablement, make sure that the Gemini Enablement status is On. If it isn't on, enable Gemini in Looker for this instance in the Google Cloud console, and then return to the Gemini in Looker admin page in the Looker (Google Cloud core) instance.
- Under Gemini Enablement status, turn on the Conversational Analytics setting.
- Under Conversational Analytics, turn on the Advanced Analytics setting. When this setting is enabled, data agent creators can choose to enable Advanced Analytics for all conversations with their data agents.
Advanced Analytics is disabled by default, even when Gemini in Looker is enabled in the Looker (Google Cloud core) instance settings in the Google Cloud console.
A Looker admin must grant additional permissions to users before they can use Advanced Analytics.
Use Advanced Analytics with a Conversational Analytics data agent
When Advanced Analytics is enabled for a given data agent, enhanced analytics capabilities are available for all conversations with that agent.
You can enable Advanced Analytics for a data agent when you are creating or editing it. Enable Advanced Analytics by turning on the Enable Advanced Analytics option.
Known limitations
- Advanced Analytics uses Python to solve problems. Since Python is more flexible than structured query languages, Advanced Analytics responses might have more variability than responses from the core Conversational Analytics experience.
- For Looker data, Conversational Analytics can return a maximum of 5,000 rows per query.
- Advanced Analytics supports only these Python libraries.
- Map visualization chart types are not supported in Advanced Analytics responses.
For information about additional limitations, see the documentation on known limitations in Conversational Analytics.
Supported Python libraries
Show supported Python libraries
Advanced Analytics supports the following Python libraries:
altairattrschesscontourpycyclerentrypointsfonttoolsfpdfgeopandasimageiojinja2joblibjsonschemajsonschema-specificationskiwisolverlxmlmarkupsafematplotlibmpmathnumexprnumpyopencv-pythonopenpyxlpackagingpandaspatsypdfminer-sixpillowplotlyprotobufpylatexpyparsingPyPDF2python-dateutilpython-docxpython-pptxpytzreferencingreportlabrpds-pyscikit-imagescikit-learnscipyseabornsixstatsmodelsstriprtfsympytabulatetensorflowthreadpoolctltoolztorchtzdataxlrd
Suggested questions
When you enable Advanced Analytics, Python's advanced analytic capabilities enable Conversational Analytics data agents to answer a wider range of questions, in addition to the standard types of supported questions. For example:
- Can you explain the key drivers for sales based on my data?
- What is the lifetime value for each of my customer segments, taking into account the average purchase frequency and the average order value?
- How do sales this year compare to sales last year?
- Identify outliers in my sales data to help identify products or regions that are performing particularly well or particularly poorly.
- Perform a cohort analysis to understand customer retention.
- Are my highest margin products also the most popular products? Use this answer to provide a suggestion on how to optimize my product mix.
- What is the compound annual growth rate (CAGR) for sales by product category for the last 3 years?
- Show the CAGR as a bar chart with product category on the x-axis and CAGR on the y-axis.