Forum Discussion

Harness's avatar
Harness
New Member
9 years ago
Solved

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 !

  • 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.

  • Harness's avatar
    Harness
    9 years ago

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

3 Replies

  • MarcelBeug's avatar
    MarcelBeug
    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.

    • Harness's avatar
      Harness
      New Member

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

      • MarcelBeug's avatar
        MarcelBeug
        Community Champion

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