Query the data

You are now ready to query your data. Arria Answers supports many types of query, but this tutorial uses sum aggregation queries only. Please refer to Arria Answers reference > Query types for more about the different query types.

This topic is organized as follows:

Suggested queries

To access the main Arria Answers Q&A page, click Start at the top of the wizard.

tableau-arria-AA-start.png

Arria Answers automatically generates a list of suggested queries, and this is the first thing you see.

tableau-arria-AA-suggestions.png

Clicking a suggestion automatically adds it to the Ask me a question... field. You can enter the query by clicking the Ask button. Clicking Show more suggestions generates a new list of suggested queries.

Top

Enter your own queries

It's more common to type a query directly into the Ask me a question... field.

tableau-arria-AA-AMAQ.png

The following steps cover the basics of entering a simple aggregation query, then making the query more precise.

  1. Enter the query What are my Sales? and hit Enter or click Ask.

    ms-arria-AA-query1.png

    The answer gives the total sales figure for the current month. This is because you set the Default Time Filter option to Latest month earlier in the tutorial. The answer shown above gives data for February 2022 because that's when this tutorial was written. You'll get a different answer if you do the tutorial during a different month.

    Note

    A query must include at least one measure.

    Tip

    All queries in this tutorial are written in full, but in practice you do not need to include a question mark and many queries can be written in truncated form. For example, What are my Sales? can be entered simply as Sales.

  2. Enter the query What are my Sales of Karateon?

    ms-arria-AA-query2.png

    Here you made the query more precise by specifying a product. This is an example of filtering the query by adding a dimension instance. Karateon is an instance of the Product dimension.

  3. Enter the query What are my Sales of Karateon in Canada?

    ms-arria-AA-query3.png

    Here you made the query even more precise by adding a further dimension instance (Canada).

  4. Enter the query What were my Sales of Karateon in Canada last month?

    ms-arria-AA-query4.png

    Note that the answer returns the previous month's figure for Canadian sales of Karateon. This is because the query includes a deictic time filter. This is just one type of time filter — see Arria Answers reference > Time filters for further detail.

Tip

In this tutorial, you have used sum aggregation queries only. There are numerous other query types — e.g. group by queries, target variance queries, etc. Please see Arria Answers reference > Query types for a detailed breakdown.

Top

Adjust the data fields or options

After entering a query, you might realize a requirement to change the Arria Answers options or reconfigure a data field. For example, you might want to change the default time filter or make a measure a non-currency measure.

To do this, click the ellipsis icon at the top of the wizard, then select Arria Answers.

tableau-arria-AA-back-to (old).png

This returns you to the data attributes screen:

tableau-arria-AA-contextmenu (old).png

From here you can reconfigure the data fields — i.e. your dimensions and measures — as required. If you want to change a default setting such as Default Currency, click Options and change the settings as shown earlier in this tutorial.

Any changes are automatically saved. Once made, click Start to return to the main Q&A page.

Top