Skip to content

Commit

Permalink
release 3.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dgosbell committed Aug 15, 2023
1 parent 0c75420 commit 592b5aa
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions blog/2023-08-16-v3_0_9/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
slug: v3_0_9-release
title: v3.0.9 Release
authors: [dgosbell]
tags: [daxstudio]
---
import Issue from '@site/src/components/Github-Issue';

# DAX Studio version 3.0.9

Today we are happy to announce the release of version 3.0.9 of DAX Studio which includes the following fixes and Updates

:::info
If you are testing DAX Optimizer you should update to this release as it includes .
:::

# Indent based code Folding

This new preview feature enables the ability to collapse sections of a query based on the indenting levels

![](./indent-code-folding-formatted.png)

You can read more about this preview feature [here](/docs/features/indent-code-folding/)

# Updates
* Updated Vertipaq Analyzer libraries to work with DAX Optimizer
* Preview - [Indent Based Code Folding](/docs/features/indent-code-folding/)

# Fixes
* Fix <Issue id="1159"/> Saved Server Timings not loading
* Fix <Issue id="1155"/> add escaping to find references
* Fix <Issue id="1154"/> define measure in calculation groups
* Fix <<Issue id="1152"/> typo in Query Builder
* Fix <Issue id="1146"/> Sorting by Translated Names
* Improved DQ formatting

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/features/indent-code-folding-unformatted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions docs/features/indent-code-folding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Indent Based Code Folding
---

:::info
This is a preview feature an needs to be enabled using the setting under Options > Preview
:::

DAX Studio does not have a fully featured DAX parser making some features like code folding impossible to implement correctly, but this feature provides an interesting work around which works for "well formatted" DAX code by allowing the code to be collapsed based on indentation levels. This does allow for some interesting use cases where you can indent a block of code from a long query and collapse it so that you can view just the portions of code that are of interest to you in a single screen.

If we take the following query as an example

![](./indent-code-folding-unformatted.png)

When we turn on the indent based code folding we see that lines 6-9 can be collapsed

![](./indent-code-folding-unformatted1.png)

However if we use the [Format DAX](../daxformatter-support) to format the code we can see how it is now possible to collapse logical blocks of the code

![](./indent-code-folding-formatted.png)

This allows us to collapse variables and measures or function calls so that it is possible to just focus on a specific part of the query

![](./indent-code-folding-formatted-folded.png)

0 comments on commit 592b5aa

Please sign in to comment.