Forum Discussion
How do I rollup duplicate rows into one row?
- Anonymous5 years ago
I found out the issue. The fields Diabetes, COPD, Asthma, CAD, and HF are not fields collected by Power BI. There are custom columns created by a funtion (IF statements). They don't show up in Power Query.
I was able to rollup the rows by exporting the table to CSV and loading the CSV file into Excel. I then ran Power Query in Excel to roll up the rows.
Hi,
Select all columns other than Diabetes, COPD, Asthma, CAD and HF, right click and select "Unpivot Other columns", Select the Attribute column and go to Transform > Pivot. See the image below
I found out the issue. The fields Diabetes, COPD, Asthma, CAD, and HF are not fields collected by Power BI. There are custom columns created by a funtion (IF statements). They don't show up in Power Query.
I was able to rollup the rows by exporting the table to CSV and loading the CSV file into Excel. I then ran Power Query in Excel to roll up the rows.