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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to combine multiple rows into one row

I have a report where members have multiple health conditions and risk factors associated with them. Here is an example:

Here the member ID 92919600 has two conditions. This is shown as two rows. I want this rolled up or grouped into one row with all the data (both conditions).

 

I am looking at ROLLUP and GROUPBY as options. There is no data to summarize.

Member IDDiabetesCOPDAsthmaCADHFDepressionCondition Opt Out DiabetesCondition Opt Out COPDCondition Opt Out AsthmaCondition Opt Out CADCondition Opt Out HFMember Engagement LevelMember Engagment Level ReasonMember Engagement Level Date
92918600  Low  NNNNNNLow 2021/03/11 00:00:00
92918600Low    NNNNNNLow 2021/03/11 00:00:00
1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1617946276701.pngv-lionel-msft_1-1617946325195.png

 

Best regards,
Lionel Chen

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

View solution in original post

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1617946276701.pngv-lionel-msft_1-1617946325195.png

 

Best regards,
Lionel Chen

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

Anonymous
Not applicable

you could try the "GroupBy" Function in powerquery.

GroupBY MemberID: Grouping rows with Power BI / Power Query — Powered Solutions

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.