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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to rollup or combine rows in Power BI

I have report in Power BI that needs to have each person shown as one row. I need to identify whether a patient has depression or not (Y or N). The top row is the row that will be in the report. I need to pull the data from the bottom row. As you can see both rows have the same Member ID. I need to roll or combine the bottom row with the top row so there is one row per Member ID. There is a filter on the report that only shows records with 'Stratification' in the Origin column. The bottom row is blank for Origin so it gets filtered out. There are no calcuations or math in these columns.

 

Is there a way to do this?

 

twikle_0-1619046428870.png

 

1 ACCEPTED SOLUTION
v-cazheng-msft
Community Support
Community Support

Hi @Anonymous 

You can try these steps.

 

1 Selected columns excepting MemberID column

v-cazheng-msft_0-1619511843078.png

 

2 Group these columns by MemberID

v-cazheng-msft_1-1619511843081.png

 

The result looks like this:

v-cazheng-msft_2-1619511843119.png

 

Best Regards

Caiyun Zheng

 

Is that the answer you're looking for? 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-cazheng-msft
Community Support
Community Support

Hi @Anonymous 

You can try these steps.

 

1 Selected columns excepting MemberID column

v-cazheng-msft_0-1619511843078.png

 

2 Group these columns by MemberID

v-cazheng-msft_1-1619511843081.png

 

The result looks like this:

v-cazheng-msft_2-1619511843119.png

 

Best Regards

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Anonymous
Not applicable

@Anonymous 

 

Totally unclear. At least to me...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.