cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Harness Frequent Visitor
Frequent Visitor

From multiple rows to summary table

Hi,

 

I thought I have a simple problem, but cannot get my head around it - I have one table with company - service pairs 

CompanyService
Company AService A
Company AService B
Company AService A
Company AService C
Company BService E
Company BService E
Company BService E
Company BService A
Company BService C
Company BService E
Company BService D
Company BService A
Company CService E
Company CService D
Company CService A
Company CService E
Company CService B

 

and I'd like to get a simple summary table as a result:

CompanyService AService BService CService DService E
Company Atruetruetruefalsefalse
Company Btruefalsetruetruetrue
Company Ctruetruefalsetruetrue

 

What would be the easiest way to accomplish this (in Power BI Desktop).

Many thanks in advance !

2 ACCEPTED SOLUTIONS

Accepted Solutions
MarcelBeug Super Contributor
Super Contributor

Re: From multiple rows to summary table

I guess M will beat DAX this time as the better solution.

This video shows how it can be done in M via the Query Editor.

Specializing in Power Query Formula Language (M)

View solution in original post

Harness Frequent Visitor
Frequent Visitor

Re: From multiple rows to summary table

Thank you so much - absolutely great help with that step-by-step video!

View solution in original post

3 REPLIES 3
MarcelBeug Super Contributor
Super Contributor

Re: From multiple rows to summary table

I guess M will beat DAX this time as the better solution.

This video shows how it can be done in M via the Query Editor.

Specializing in Power Query Formula Language (M)

View solution in original post

Harness Frequent Visitor
Frequent Visitor

Re: From multiple rows to summary table

Thank you so much - absolutely great help with that step-by-step video!

View solution in original post

Highlighted
MarcelBeug Super Contributor
Super Contributor

Re: From multiple rows to summary table

You're welcome, but please mark the right post as the solution...

Specializing in Power Query Formula Language (M)

Helpful resources

Announcements
Coming Soon: T-Shirt Design Contest

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors
Top Kudoed Authors