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

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
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)