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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sarah1687
New Member

Paginated Report Power Bi expression need to trim value

I would like help with adding an expression for trimming a field value in a paginated report. The field consists of a first name, last name and number inside of it. I would only like to show the first and last name, but I am not sure how to . I have been trying to use LEN, LEFT, and RIGHT, but I'm not sure how to use it right. Below is an example of a value

"Sarah Lipton 4568875312" < This would be displayed when selecting the field name "Personnel".

"Sarah Lipton" < I would like it to display as this.

All of the phone numbers are the same length of 10 characters.

Please help me add an expression to trim the field content.

I tried =Left(Fields!Personnel.Value, Len(Fields!Personnel.Value) - InStr(Fields!Personnel.Value, "4"))

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Sarah1687 ,

 

Based on your description, the phone number is 10 characters and the phone number may not start with 4, so I would suggest you try that:

=Left(Fields!Personnel.Value, Len(Fields!Personnel.Value) - 10)

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Sarah1687 ,

 

Based on your description, the phone number is 10 characters and the phone number may not start with 4, so I would suggest you try that:

=Left(Fields!Personnel.Value, Len(Fields!Personnel.Value) - 10)

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.