cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Split and tally data in a delimited column

Hi all,

 

I have a set of data I'm pulling in from an Azure table that has a column of semi-colon delimited text with counts like this:

 

amd64=3;
UNKNOWN=2;amd64=2;
x86=2;amd64=1;UNKNOWN=1
amd64=5;
x86=3;
UNKNOWN=2;


I would like to create a table on one of my dashboards with totals like this:

amd64 11
UNKNOWN 5
x865

 

I'm new to PowerBI and have been struggling with various splits, and even R scripts. Is there a simple series of transformations that you can recommend to help me get this output? As a note, while the example here only has a max of three items delimited by a semi-colon, the data I receive from the Azure table could have more.

 

Thanks for your help!

 

-Matt

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User I
Super User I

Re: Split and tally data in a delimited column

Split the column by delimiter (semicolon) using the Advanced option "To Rows".

Filter out the blank rows.

This gives a single column table.

Split the column by delimiter (=)

This gives 2 columns.

Then use 'Group By' to group on the first column (the text) with the Sum of the second column.

Make sure the columns have the correct datatype at each stage.

 

 

View solution in original post

1 REPLY 1
Highlighted
Super User I
Super User I

Re: Split and tally data in a delimited column

Split the column by delimiter (semicolon) using the Advanced option "To Rows".

Filter out the blank rows.

This gives a single column table.

Split the column by delimiter (=)

This gives 2 columns.

Then use 'Group By' to group on the first column (the text) with the Sum of the second column.

Make sure the columns have the correct datatype at each stage.

 

 

View solution in original post

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors
Top Kudoed Authors