Forum Discussion

67nmark's avatar
67nmark
Helper I
8 years ago
Solved

Create a reference column on which to summarize

Hello again,   I have a 1000 row dataset from survey monkey. There are 6 columns of data (Col1,Col,...,Col6). The value in each row across all columns is a number, 1 - 6.   I'm new to Power BI so...
  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    8 years ago

    Hi 67nmark

     

    You can easily do it in QUERY EDITOR with a series of unpivoting, GROUPING and Pivoting back

     

    See the atatched file here

     

    Step#1

     

    Select All Columns and unpivot them

     

     

    Step # 2

     

    Group by VALUE and ATTRIBUTE and aggreagate by COUNTROWS

     

     

    Step 3

     

    Pivot the attribute Column using Count column as Values