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! Learn more

Reply
Anonymous
Not applicable

Transform Fix

Hi there, 

 

I am having an issue with certain attributes not updating my TIME FRAME correctly and I know it has to do with the fact that my query step is saying take the last 13 characters of the attribute column to create the TIME FRAME column. How can I get the ATTRIBUTE fields that are YTD to display LATEST YTD? See the last 2 rows.

 

Here is the step that produces the TIME FRAME column as it is now:

= Table.AddColumn(#"Created CURYAG YEAR Column", "TIME FRAME", each Text.End([Attribute], 13), type text)

 

INDEXAttributeVALUEMEASUREYEARTIME FRAME
1SALES - CUR LATEST 12 WKS366875.9567SALESCURLATEST 12 WKS
1SALES - YAG LATEST 12 WKS0SALESYAGLATEST 12 WKS
1SALES - CUR LATEST 26 WKS721209.5977SALESCURLATEST 26 WKS
1SALES - YAG LATEST 26 WKS0SALESYAGLATEST 26 WKS
1SALES - CUR LATEST 52 WKS721209.5977SALESCURLATEST 52 WKS
1SALES - YAG LATEST 52 WKS0SALESYAGLATEST 52 WKS
1SALES - CUR YTD721209.5977SALESCURLES - CUR YTD
1SALES - YAG YTD0SALESYAGLES - YAG YTD
      
1 ACCEPTED SOLUTION
ALLUREAN
Solution Sage
Solution Sage

Hi, @Anonymous 

= Table.AddColumn(#"Changed Type", "Text After Delimiter", each Text.AfterDelimiter([Attribute], " ", 2), type text)

https://www.dropbox.com/s/5wkgtxps0pyfpq4/TIME%20FRAME%28allure-analytics.com%29.pbix?dl=0

 

Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.

Appreciate your Kudos !!!

https://allure-analytics.com/




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ALLUREAN
Solution Sage
Solution Sage

Hi, @Anonymous 

= Table.AddColumn(#"Changed Type", "Text After Delimiter", each Text.AfterDelimiter([Attribute], " ", 2), type text)

https://www.dropbox.com/s/5wkgtxps0pyfpq4/TIME%20FRAME%28allure-analytics.com%29.pbix?dl=0

 

Did I answer your question? Please Like and Mark my post as a solution if it solves your issue. Thanks.

Appreciate your Kudos !!!

https://allure-analytics.com/




Did I answer your question? Mark my post as a solution!


https://allure-analytics.com/
https://www.youtube.com/channel/UCndD_QZVNB_JWYLEmP6KrpA
https://www.linkedin.com/company/77757292/

Proud to be a Super User!




Anonymous
Not applicable

@ALLUREAN 

 

Thank you but I have additional Attributes of varying length and your solution didn't address those. Sorry that I didn't let you know that I had other attributes.

Helpful resources

Announcements
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!

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.

Top Solution Authors