Forum Discussion
tamiribas
1 year agoResolver I
Error message in Power Query: NameError: name 'dataset' is not defined
Hi, I have a very simple static demo table Category Amount A 1 B 2 That table is my source. I am trying to add a Python script right after the source step. That script adds ...
- 1 year ago
Thank you lbendlin ,
Although unnecessary, that line just returns another dataset (the default "dataset" and "result")
The problem was that I was missing the parameter that assigned the step to the dataset.
In your M code, it is this:
[dataset=#"Changed Type"]Once I added that parameter to my M code, it worked.
Regards,
Tamir
tamiribas
1 year agoResolver I
Thank you lbendlin ,
Although unnecessary, that line just returns another dataset (the default "dataset" and "result")
The problem was that I was missing the parameter that assigned the step to the dataset.
In your M code, it is this:
[dataset=#"Changed Type"]Once I added that parameter to my M code, it worked.
Regards,
Tamir