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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Taurus
Frequent Visitor

Table.Group and complex aggregation function

For example, I have this simple SQL statement:

 

SELECT a, SUM(b)*a  FROM table  GROUP BY a

 

How can I implement "SUM(b)*a" in a Table.Group function? For "SUM(b)" Power Query generates "each List.Sum([b])", but how to multiply this by "a" ? Or how to implement SUM(b*a), which cause the same result?

1 ACCEPTED SOLUTION
PhilC
Resolver I
Resolver I

Can you Group by [Column a], with a sum aggregation for [Column b], then add a custom column for [Column a] * [new column b]?

View solution in original post

1 REPLY 1
PhilC
Resolver I
Resolver I

Can you Group by [Column a], with a sum aggregation for [Column b], then add a custom column for [Column a] * [new column b]?

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors
Top Kudoed Authors