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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors