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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
rds_2019
Helper I
Helper I

Pick up String by starting the count from right right or from end

Hi,

I want to take the String from a field by countfrom the right but not able to.

I want to do below From Field, Rerquired1 and Required 2 or trhe fields. I have to count from right end of the String to identify the reuired String:- 

 

Field Required 1Required 2
abc_22_20190920199
abc_20190820198
aaa_dd_20190720197
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Required1 = LEFT(RIGHT(tbl[Field ],6),4)
Required2 = RIGHT(tbl[Field],2)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Required1 = LEFT(RIGHT(tbl[Field ],6),4)
Required2 = RIGHT(tbl[Field],2)

@Anonymous , This is how i have done it but i am sure there must be some direct way we can get this done .I mean direct DAX query which can be used instead of usig RIGHT and then LEFT.

 

Cheers,

RDS

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.