Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have a number of different finiancial queries for each quarter and I want to be able to choose which to pull from dynamically.
I attempted to accomplish this like so:
Source = Expression.Evaluate("LY-All Branch Summery-Q"&Quarter, #shared)
Unfortunatly this threw an error at me:
Expression.Error: [1,8-1,14] Token Eof expected.
Details:
[List]
To Diagnose this I hardcoded the query name, and in another step referenced the query with the more common #"Queryname" approch.
let
Source = Expression.Evaluate("LY-All Branch Summery-Q1", #shared),
Source1 = #"LY-All Branch Summery-Q1"
in
Source1
In this query If I go to step 'Source" I get the same error as above. "Source1" however gives me the query as expected.
What am I doing wrong here?
Thanks in advance
Joseph
Solved! Go to Solution.
this call works just fine
Expression.Evaluate("#""LY-All Branch Summery-Q1""", #shared)
Why, it does indeed!
I was able to use that to make my dynamic names work:
= Expression.Evaluate("#""LY-All Branch Summery-Q" & Quarter & """", #shared)
Thanks AlienSx!
this call works just fine
Expression.Evaluate("#""LY-All Branch Summery-Q1""", #shared)
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 4 |