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
Anonymous
Not applicable

Azure Cost Management- Split Tags into columns

I have data from azure cost management connector and I want to split the tags into columns.  

 

The tags are no longer json wrapped, and even when I've tried to convert it to json I get errors. Also splitting by commas does not work as each tag is different. 

 

I saw another post similar to this and the solution did not work. I keep getting a column of errors. Any thoughts or suggestions on ways I can make this happen?

 

Here is an example of what the tags look like, all of them contain different information. I want to pull out all "AppName" and put into a column: 

"Environment": "DEV","BillTo": "NA","AppName": "NA","Role": "Unassigned"

 

 

Here's what I tried following a solution from a different post. I get a find error stating that "AppName" can't be found.

 

AppName =
VAR tag = "AppName"
VAR textLength =
FIND( ",",
'Usage details'[Tags],
FIND(tag,'Usage details'[Tags])+LEN(tag)+3)-(FIND(tag,'Usage details'[Tags])+LEN(tag)+3)-1
RETURN
MID(
'Usage details'[Tags],
FIND(tag,'Usage details'[Tags])+LEN(tag)+3,
textLength)

 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

4 REPLIES 4
Anonymous
Not applicable

Hey @Anonymous ,

 

I shared a solution that worked for me over here:

https://community.powerbi.com/t5/Desktop/Azure-Cost-Management-Splitting-Out-Tags/m-p/1187644/highlight/true#M533208

 

Hope that helps you!

 

Anonymous
Not applicable

HI @Anonymous,

Since we not so clear for your data structure, can you please provide some dummy data to test? It is hard to coding formula from your description without any other sample data.

How to Get Your Question Answered Quickly 

Notice: if you not so familiar with power query language, it will hard fix and modify on power query formulas if data structure changes in your data source. (power query will cache previous data structure in query step, they not auto-sync if source data structure changes; it mean you need to manly fix these not match fields in all of the steps)
Regards,

Xiaoxin Sheng

Anonymous
Not applicable

DAX is a DATA ANALYSIS eXPRESSIONS language, not a data mashup language. Please use the right tool for the job: Power Query.

Best
D
parry2k
Super User
Super User

@Anonymous share the sample data with expected output, it will help to provide the solution.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.

Top Solution Authors
Top Kudoed Authors