- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Run Dax query in Fabric Notebook

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Uspace87 ,
Thanks for using Fabric Community.
I haven't tried it, can you please try like this?
query1 = 'final_trace_logs.iloc[0]['Text Data']'
or
query1 = "final_trace_logs.iloc[0]['Text Data']"
Please let me know if you got any errors?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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']
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-06-2024 06:59 AM | |||
01-22-2024 03:19 AM | |||
01-29-2025 07:02 AM | |||
11-08-2024 04:02 AM | |||
01-06-2025 08:11 AM |
User | Count |
---|---|
24 | |
17 | |
8 | |
8 | |
2 |
User | Count |
---|---|
32 | |
26 | |
22 | |
16 | |
12 |