Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
VadGln
Frequent Visitor

Dataflow dont save comments outside let statement

Hello everyone,

 

I cannot save the comments in dataflows above let statement. For example:

-------------------------------------------------

/***

  Query Name: Query A

  Creation Date: 2022-11-23

  Author: XXXX

  Purpose: ABC

***/

let
  Source = Sql.Database(XXXXX),
  Navigation = XXXX
in
 Navigation
--------------------------------------------------

Everything inside the let statements seems to be save. But everything outside the let statement is not saved after closing the dataflow. In Power Query in Power BI Desktop same approach does work smoothly, I need this for the documentation purpose.

Is it a bug, or do I need adjust some settings inside of dataflow?

1 ACCEPTED SOLUTION

Thank you Pete, 


it one of the workarounds, we decided for the time being we just add the general code comment right after the let line.

Also I committed new post in the “Ideas” section, will see what will happen.

View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @VadGln ,

 

I've just tested and can confirm that Dataflows do NOT save either block or line comments above the 'let' or below the 'in' step.

I doubt MS would see this as a bug TBH. Code comments are for commenting code, not really for broader documentation.

You can always use the Properties functions either on the Dataflow as a whole (click the ellipsis next to the DF name in your workspace), or on each individual query within the DF (right-click the query in your DF).

 

Pete

 



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Thank you Pete, 


it one of the workarounds, we decided for the time being we just add the general code comment right after the let line.

Also I committed new post in the “Ideas” section, will see what will happen.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors