Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for the Keep Sorting and Filtering preference #141

Merged
merged 12 commits into from
Feb 6, 2025
Binary file modified images/features/dax_query_window/dax_query_toolbar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 11 additions & 6 deletions te3/features/dax-query.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,22 @@ The built-in context-aware DAX Editor ensures that only the two valid DAX keywor

## DAX Query Options

The DAX query window has four different query options.
The DAX query window has five different query options.

![Dax Query Toolbar](~/images/features/dax_query_window/dax_query_toolbar.png)


1. Execute (F5)
2. Execute Selection (Shift+F5)
3. Stop
4. Auto Execute Query
1. **Execute (F5)**: If there is a selection, it executes the selected DAX; otherwise, it executes the full query in the DAX Query editor.
2. **Execute full query**: It executes the full query in the DAX Query editor
3. **Execute Selection (Shift+F5)**: If there is a selection, it executes it. Otherwise, it executes the EVALUATE statement where the cursor is currently located.
4. **Stop**: This button cancels the current query execution.
5. **Auto Execute Query**: It allows for keeping track of the connected semantic model and updating the query results whenever something changes in the model. This can be useful for understanding e.g. how the result of a measure changes if modified.
6. **Keep sorting and filtering**: It allows users to control how sorting and filtering are preserved in the result grid(s) when executing queries. There are three preferences available:
- **Never**: Sorting and filtering reset each time the query runs.
- **When query is modified**: Sorting and filtering reset only when the query structure changes.
- **Always**: Sorting and filtering persist as long as columns remain in the new query.

The Auto Execute Query allows for keeping track of the connected semantic model and update the query results whenever something changes in the model. This can be useful for understanding e.g. how the result of a measure changes if modified.
The default values of "Auto Execute Query" and "Keep Sorting and Filtering" preferences can be set up in the Preferences dialog: **Tools > Preferences... > Data browsing > DAX Query** > Basic.

### Adding or Updating Measures with DAX Queries

Expand Down
Loading