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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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