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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.