Forum Discussion

Data_enthu's avatar
Data_enthu
New Member
3 years ago
Solved

How to retrieve value from a single column into multiple columns

Hello,  I have a query output where I am getting columns such as enrollment count, CRS_SUBJ_CD (course subject code),CRS_NBR (course subject number), TERM_CD etc.  The output has all the CRS_SUBJ_C...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Data_enthu ,

     

    Do you want to count by CRS_SUBJ and CRS_NBR grouping?

    Here's an example.

    You can use group by feature in Power Query. Select the both columns and click "Group By...".

    In addition to adding a column with a count, add a column that retains the original rows.

    Expand it.

       

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.