add separator to my code for first three values: best-voice = SWITCH ( SELECTEDVALUE (…
- User
add separator to my code for first three values: best-voice = SWITCH ( SELECTEDVALUE ( 'Top'[مداحان] ), "بیشترین آثار", [most-title], "میانگین پخش", ROUND ( [avg-play], 0 ), "میانگین دانلود", ROUND ( [avg-download], 0 ), "میانگین لایک", ROUND ( [avg-like], 1 ), BLANK () )
Assistant
You can add a separator, such as a hyphen (-), to the first three values in your code like this:
best-voice =
SWITCH ( SELECTEDVALUE ( 'Top'[مداحان] ), "بیشترین آثار", [most-title] & " - ", "میانگین پخش", ROUND ( [avg-play], 0 ) & " - ", "میانگین دانلود", ROUND ( [avg-download], 0 ) & " - ", "میانگین لایک", ROUND ( [avg-like], 1 ), BLANK () )This will add a hyphen and a space after the first three values to separate them from the rest of the text. Note that you need to use the
&operator to concatenate the string values in Power BI.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.