- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Unable to insert newline in formula bar with `Shift + Enter`
As of this morning, I am unable to use `Shift + Enter` to insert a new line when typing into the DAX formula bar.
Keyboard shortcuts in Power BI Desktop - Power BI | Microsoft Learn
Any ideas for how to fix? I've tried restarting, copy-pasting, etc.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Just tried the feature again after a long hiatus and I can confirm that newlines **NOW WORK** with the `Quick measure suggetsions` preview enabled, on desktop version 2.123.684.0 64-bit (November 2023)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Just tried the feature again after a long hiatus and I can confirm that newlines **NOW WORK** with the `Quick measure suggetsions` preview enabled, on desktop version 2.123.684.0 64-bit (November 2023)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Ctrl + Shift + Enter => Enter new line in Dax formula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

`CTRL + SHIFT + ENTER` is slightly different. Regardless of where the cursor is situated, it seems to always insert an entire new line.
Whereas `SHIFT + ENTER` will respect the cursor position.
So for example, if I wanted to break up the following statement into two lines, at the `_`:
`Measure = _Blah blah blah`
`CTRL-SHIFT-ENTER` will move the entire line down
```
_
Measure = Blah blah blah
```
While `SHIFT-ENTER` will only move the text after `Blah...` to the new line
```
Measure =
Blah blah blah
```
Does that make sense? Anything there I could explain better or may be wrong about?
---
And as a quick update to the topic, I just re-enabled the feature again and `Shift+Enter` still does not work as it does when the feature is *NOT* enabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Has this issue been addressed yet? I just discovered I'm having this problem now. Very inconvenient.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

It was still this way when I tried it again a couple weeks ago.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Quick update...
One of the things we changed this morning is we enabled `Preview Features -> Quick measures suggestions`
When I go back in and DISABLE this preview feature, I am able to `Shift + Enter` to create newlines as before.
So, at least on my end, it seems to be something related to this option.
---
EDIT: Submitted this as feedback to the preview feature
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@blake_leblanc - what about 'Alt + Enter'?
Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!
Proud to be a Super User!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Tried that as well, but no luck.
The only thing that "fixed it" for us at the moment was to disable the `Quick measure suggestions` preview feature we were playing around with this morning.
Which is interesting because not being able to use `Shift + Enter` applied to existing measures and newly created measures, as well as to those generated through the suggestion tool.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-09-2024 08:20 AM | |||
11-05-2024 03:22 PM | |||
01-02-2025 07:52 AM | |||
10-08-2024 04:55 AM | |||
07-20-2024 02:04 AM |
User | Count |
---|---|
140 | |
110 | |
81 | |
60 | |
46 |