The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Since today, I encounter expression errors in a workbook I am working with. It also happens with older versions of the workbook that were fine before.
It happens twice in my query:
Here:
let
Source = Excel.Workbook(Parameter1, null, true),
Export_Sheet = Source{[Item="Export",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Export_Sheet, [PromoteAllScalars=true])
in
#"Promoted Headers"
and in another step here:
let
Source = Excel.Workbook(Parameter2, null, true),
Export_Sheet = Source{[Item="Export",Kind="Sheet"]}[Data],
#"Promoted Headers" = Table.PromoteHeaders(Export_Sheet, [PromoteAllScalars=true])
in
#"Promoted Headers"
I have absolutely no clue why this is happening since today, but hopefully someone can point me in the right direction.
Many thanks in advance!
Phil
Solved! Go to Solution.
Hi Phil,
The only place I can see that could create circular references here is your Parameters that you're using to identify the workbooks in the Source steps.
Try and materialise the parameters somewhere, or check in the parameter settings, to see exactly what they are pointing to, or post the parameter details here if you're not sure what you're looking for.
Pete
Proud to be a Datanaut!
Hello all,
As soon as I applied the filter on a date/time field based on RangeStart and RangeEnd date parameters, I got this error. Anyone know why I am getting error in PBI?
This is the filter I have applied to the date field;
Thanks,
pthapa
Hey Pete,
thanks a lot for your quick reply, much appreciated!
Turned out that the parameter was indeed the culprit; for reasons unknown to me, there was no current value selected. Once I selected it, the query was fixed.
See here:
BR
Phil
Cool, glad it's sorted.
As a completely unrelated bonus hack, you can change the second argument in your Excel.Workbook source function to 'true' to avoid having to do the Promote Headers step:
// From this:
Source = Excel.Workbook(Parameter1, null, true),
// To this:
Source = Excel.Workbook(Parameter1, true, true),
I like tidy code! 🙂
Pete
Proud to be a Datanaut!
Hi Phil,
The only place I can see that could create circular references here is your Parameters that you're using to identify the workbooks in the Source steps.
Try and materialise the parameters somewhere, or check in the parameter settings, to see exactly what they are pointing to, or post the parameter details here if you're not sure what you're looking for.
Pete
Proud to be a Datanaut!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.