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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Nietzsche
Helper IV
Helper IV

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors