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

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/EZqSjg42ijlMpPRfeaAmA7IBB86ko_ci75NJR2-tNjWPFA?e=IIuMNd

 

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/EZqSjg42ijlMpPRfeaAmA7IBB86ko_ci75NJR2-tNjWPFA?e=IIuMNd

 

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
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.