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
sangeethray
Frequent Visitor

Pivot Column Giving Unexpected Result

I have done pivot column for the table in the first image for column session type. In the result for date 01/07/2001 the result is showing incorrect sum for the column rating 'comm' . What might be the reason ? This is the mQuery used. 

= Table.Pivot(#"Grouped Rows", List.Distinct(#"Grouped Rows"[#"Session Type"]), "Session Type", "Sessions", List.Sum)
@mdsmith1 

 

I have done pivot column on this table for session type.I have done pivot column on this table for session type.In the result for date 01/07/2001 the result is showing incorrect sum for the column rating commIn the result for date 01/07/2001 the result is showing incorrect sum for the column rating comm

1 ACCEPTED SOLUTION
jbwtp
Memorable Member
Memorable Member

Hi @sangeethray,

 

Pivoting does not summarise the rest of the column, rather it groups it.

If you want to retain similar numbers (to be able to summ them later) you can add an index column before pivoting. This will preserve all rows.

 

Cheers,

John

View solution in original post

1 REPLY 1
jbwtp
Memorable Member
Memorable Member

Hi @sangeethray,

 

Pivoting does not summarise the rest of the column, rather it groups it.

If you want to retain similar numbers (to be able to summ them later) you can add an index column before pivoting. This will preserve all rows.

 

Cheers,

John

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.

Top Solution Authors
Top Kudoed Authors