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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Nietzsche
Helper V
Helper V

What is the point of DummyVariable = null?

Hello everybody, 

 

I am reading the book Master Microsoft Power BI 2nd ed, in the book there is this code and the author don't really explain why there is a need for DummyVariable = null after defining the Source.

Nietzsche_0-1716155753137.png

 

Can someone tell me why the author used DummyVariable = null?

 

Thank you.

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

To demonstrate the lazy vs eager evaluation logic of Power Query?

Evaluation model - PowerQuery M | Microsoft Learn

View solution in original post

v-jingzhan-msft
Community Support
Community Support

Hi @Nietzsche 

 

Based on my understanding, "DummyVariable = null" is not a need after the Source. Probably the author is to show that it can be added here. And when it is added here, it will not affect the DirectQuery table as it is not used thus is ignored. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

2 REPLIES 2
v-jingzhan-msft
Community Support
Community Support

Hi @Nietzsche 

 

Based on my understanding, "DummyVariable = null" is not a need after the Source. Probably the author is to show that it can be added here. And when it is added here, it will not affect the DirectQuery table as it is not used thus is ignored. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

lbendlin
Super User
Super User

To demonstrate the lazy vs eager evaluation logic of Power Query?

Evaluation model - PowerQuery M | Microsoft Learn

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors