Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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)
| INDEX | Attribute | VALUE | MEASURE | YEAR | TIME FRAME |
| 1 | SALES - CUR LATEST 12 WKS | 366875.9567 | SALES | CUR | LATEST 12 WKS |
| 1 | SALES - YAG LATEST 12 WKS | 0 | SALES | YAG | LATEST 12 WKS |
| 1 | SALES - CUR LATEST 26 WKS | 721209.5977 | SALES | CUR | LATEST 26 WKS |
| 1 | SALES - YAG LATEST 26 WKS | 0 | SALES | YAG | LATEST 26 WKS |
| 1 | SALES - CUR LATEST 52 WKS | 721209.5977 | SALES | CUR | LATEST 52 WKS |
| 1 | SALES - YAG LATEST 52 WKS | 0 | SALES | YAG | LATEST 52 WKS |
| 1 | SALES - CUR YTD | 721209.5977 | SALES | CUR | LES - CUR YTD |
| 1 | SALES - YAG YTD | 0 | SALES | YAG | LES - YAG YTD |
Solved! Go to Solution.
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 !!!
Proud to be a Super User!
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 !!!
Proud to be a Super User!
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.
| User | Count |
|---|---|
| 51 | |
| 40 | |
| 35 | |
| 23 | |
| 22 |
| User | Count |
|---|---|
| 134 | |
| 103 | |
| 57 | |
| 43 | |
| 38 |