Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Harness
New Member

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
MarcelBeug
Community Champion
Community Champion

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

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

View solution in original post

3 REPLIES 3
MarcelBeug
Community Champion
Community Champion

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)

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

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

Specializing in Power Query Formula Language (M)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.