correct this m language for powerbi = [Start Time] & " - " & [End Time] & " : " &…
- User
correct this m language for powerbi = [Start Time] & " - " & [End Time] & " : " & [Category] & " (" & [Activity] & ")"
Assistant
The corrected M language for Power BI is:
code= Text.Combine({[Start Time], " - ", [End Time], " : ", [Category], " (", [Activity], ")"})Or, if you want to keep it in the same format as your original code:
code= [Start Time] & " - " & [End Time] & " : " & [Category] & " (" & [Activity] & ")"The issue with your original code is that in M language, you need to ensure that the data types you're concatenating are text. If
[Start Time],[End Time],[Category], and[Activity]are not text, you might need to convert them to text using the function.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.