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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Summarize columns by different operations compared to rows

Hello

 

I have a flat wide table that I'm trying to summarize differently across dates in columns (max) but by sum over the rows.

This is to produce a timeline showing how many components are installed at any given time.

 

The source looks like this:

yearmonthEOMVehicleComponentInstall dateIs Installed
2020131/01/2020MazdaRadio3/03/20200
2020229/02/2020MazdaRadio3/03/20200
2020331/03/2020MazdaRadio3/03/20201
2020430/04/2020MazdaRadio3/03/20201
2020531/05/2020MazdaRadio3/03/20201
2020630/06/2020MazdaRadio3/03/20201
2020131/01/2020MazdaWindscreen7/06/20200
2020229/02/2020MazdaWindscreen7/06/20200
2020331/03/2020MazdaWindscreen7/06/20200
2020430/04/2020MazdaWindscreen7/06/20200
2020531/05/2020MazdaWindscreen7/06/20200
2020630/06/2020MazdaWindscreen7/06/20201
2020131/01/2020FordRadio1/01/20201
2020229/02/2020FordRadio1/01/20201
2020331/03/2020FordRadio1/01/20201
2020430/04/2020FordRadio1/01/20201
2020531/05/2020FordRadio1/01/20201
2020630/06/2020FordRadio1/01/20201
2020131/01/2020FordWindscreen30/04/20200
2020229/02/2020FordWindscreen30/04/20200
2020331/03/2020FordWindscreen30/04/20200
2020430/04/2020FordWindscreen30/04/20201
2020531/05/2020FordWindscreen30/04/20201
2020630/06/2020FordWindscreen30/04/20201

 

What I am trying to see is:

  2020
VehicleComponent123456
MazdaRadio001111
MazdaWindscreen000001
FordRadio111111
FordWindscreen000111

 

I have used a measure to take the max of the 'Is Installed' so that when the columns are drilled up to "Year" it still shows 1 but how do I show the sum of the "is installed" when I drill up to Vehicle?

 2020
Vehicle123456
Mazda001112
Ford111222

 

Much Thanks

K

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

Hi @Anonymous ,

If you want to drill up to Vehicle, you need to convert Drill on Columns to Drill on Rows.

 

v-kkf-msft_0-1614845921272.pngv-kkf-msft_1-1614845928898.png

This is my PBIX file.

https://microsoftapc-my.sharepoint.com/:u:/g/personal/v-lazhang_microsoft_com/EZqSjg42ijlMpPRfeaAmA7...

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

1 REPLY 1
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

If you want to drill up to Vehicle, you need to convert Drill on Columns to Drill on Rows.

 

v-kkf-msft_0-1614845921272.pngv-kkf-msft_1-1614845928898.png

This is my PBIX file.

https://microsoftapc-my.sharepoint.com/:u:/g/personal/v-lazhang_microsoft_com/EZqSjg42ijlMpPRfeaAmA7...

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.