Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
kyrpav
Helper V
Helper V

text import recognition of function

Hello, i have ta table with some metrics. On column is the thresold format header.

 

For one row the data look like this.

UNICHAR(128992)&":<80%"&UNICHAR(10)&UNICHAR(128993)&":80-90%"&UNICHAR(128994)&":>90%"

 

if i have this inside powerbi writen in a function in a measure then when i select this measure to matrix everything works and unichars apear normally.

When i import this column from db and i select the column to matrix then i see only the text. Is there anyway to make powerbi parse the function after import.?

1 ACCEPTED SOLUTION

I fixed it like this

 

study_kpi_metric_header = 
var metricId=metrics[id]
RETURN 
CONCATENATEX(filter(ALLSELECTED(metrics);metrics[id]=metricId);metrics[thresold_header];UNICHAR(10);metrics[id];ASC;metrics[thresold_category_id];DESC)

View solution in original post

7 REPLIES 7
vanessafvg
Super User
Super User

are you saying you want power bi to run a function that is sitting in cell? it will see it as a string, not a function if that is what you saying





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Yes it sees it as string , i want to know if there is a way to transorm this later.

wouldn't think so no, you need to put the function in the right place, not in the value of the field.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




If i have a table with metric headers which mean i have a table like

 

metric_idthresold_idthresold_header
11header1
12header2
13header3
21header4
22header5
23header6

 

How can i add another column (not measure cause i want to place it in rows in matrix) that concatenates all headers per metric. So the column should be like:

 

metric_header
header1,header2,header3
header1,header2,header3  
header1,header2,header3  
header4,header5,header6
header4,header5,header6   
header4,header5,header6 

 

I am using

 

 

CONCATENATEX(metrics;metrics[id];metrics[thresold_header];UNICHAR(10);metrics[id];ASC)

 

 but it does not work cause i need somehow to filter the table for the same id

I fixed it like this

 

study_kpi_metric_header = 
var metricId=metrics[id]
RETURN 
CONCATENATEX(filter(ALLSELECTED(metrics);metrics[id]=metricId);metrics[thresold_header];UNICHAR(10);metrics[id];ASC;metrics[thresold_category_id];DESC)
parry2k
Super User
Super User

@kyrpav I don't think you can parse the formula, why would you do that though, you can pass the values from the db and have it dynamic but not the whole expression.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Cause if i pas the values i need a function that goes in a table and concatenates specific columns for specific groups of rows.
This means that for metric 1 to concatenate all the thresold.
i am now exactly sure how to use calculate and summerize to do this calculation per metric and thresold order since i fix pre thresold this text.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.