Forum Discussion
Run Dax query in Fabric Notebook
hi Anonymous thank you for your reply but that would not work.
as I mentioned before I do store the the dax code into the variable query1
query1 = final_trace_logs.iloc[0]['Text Data']
Hi Uspace87 ,
Syntax of evaluate_dax - sempy.fabric package | Microsoft Learn
It expects string
Can you please check the type(query1) ? I can see it is not a string.
Hope this is helpful. Please let me know incase of further queries
- Anonymous2 years agoNot applicable
Hi Uspace87 ,
Can you please share the screenshot for below codes -query1 = final_trace_logs.iloc[0]['Text Data'] print(query1)final_trace_logs.iloc[0]['Text Data']print(type(query1))
I can get some more idea of your problem and I can help you out.- Anonymous2 years agoNot applicable
Hello Uspace87 ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .
In case if you have any resolution please do share that same with the community as it can be helpful to others .
Otherwise, will respond back with the more details and we will try to help .
Thanks
- Uspace872 years agoResolver III
Hi Anonymous thanks for the replay. as you can see in the output I am printing the dax query and the type of the variable (query) and it's a string but if I pass it as a variable the code does not work, I have to copy and paste the text itself as you did in your example