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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

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 @Anonymous ,

 

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!




Anonymous
Not applicable

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors