Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all,
I am using SAP BW Bex query as source. I have a date variable in the bex query. I am tying to pass (current date-7) as start date and current data as end date.
Variables in Bex:
I get an errror as below when I use the code.
Can someone please suggest on how to fix this?
Thank you.
Read about Value.Is and then adjust your Power Query code to account for both scenarios. Easiest approach is to make a fake list out of a single value and then tailor the Bex query for lists.
@lbendlin - could you pls provide steps on how to achieve using the fake list out of a single value you mentioned,
- use Value.Is to check if the parameter is a list
- if it is not, encase it in curly brackets
@lbendlin - I looked at the parameter type in the backend query and it is not a list. I have also enclosed in curly brackets and still get the same error
Maybe post a less obfuscated version of your query?
@lbendlin : I was now able to pass one parameter that I created.
When I pass the second parameter "DatePar1", I get an error.
Error:
Can you please suggest.
what happens when you use
{ DatePar, DatePar1 }
What date format is your BW expecting? ISO8601?
these are not the same formats. (and neither are good formats). Can you specify the date in ISO8601?
That's a datetime. You need to convert to datetime first and then to date.
But I am disappointed that SAP BW can't handle this natively.
@lbendlin - I get the same issue as previously mentioned with date type as well.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 40 | |
| 21 | |
| 17 |