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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Power Query Summary Table

Hello,

 

I'm trying to build a summary table in Power Query to build a waterfall chart. I'm planning to create a table with one column per category that will end up in the waterfall, then transpose the data so it ends up with the original headers as category names. I'm running into an error when trying to push the result of a List.Sum into the blank table. The lines which are throwing the error are: 

FilteredTable=Table.SelectRows(#"Full Backlog", each Date.Year([Customer Required Date])=2017),
    #"BL Waterfall" = #table({"Order Line"},List.Sum(Table.Column(FilteredTable,"Order Line")))

 

The "Order Line" column in "Full Backlog" is a list of numbers. When I try to add the summarized value to the BL Waterfall, it throws an error that "We cannot convert the value 1200 to type List." Any suggestions on how to correct this error, or how to create this summary table more efficiently? There will be about a dozen columns in the end summarizing data from 5 or so tables.

 

Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Just found one way to solve this problem. This could be condensed, but this shows the steps separately:

    FilteredTable2017=Table.SelectRows(#"Full Backlog", each Date.Year([Customer Required Date])=2018 or Date.Year([Customer Required Date])=2017),
    #"BL Waterfall2017" = List.Sum(Table.Column(FilteredTable2017,"Order Line")),
    FilteredTable2018=Table.SelectRows(#"Full Backlog", each Date.Year([Customer Required Date])=2018),
    #"BL Waterfall2018" = List.Sum(Table.Column(FilteredTable2018,"Order Line")),
    #"Converted to List" = {[Backlog=#"BL Waterfall2017",Current=#"BL Waterfall2018"]},
    #"Converted to Table" = Record.ToTable(#"Converted to List"{0})

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Just found one way to solve this problem. This could be condensed, but this shows the steps separately:

    FilteredTable2017=Table.SelectRows(#"Full Backlog", each Date.Year([Customer Required Date])=2018 or Date.Year([Customer Required Date])=2017),
    #"BL Waterfall2017" = List.Sum(Table.Column(FilteredTable2017,"Order Line")),
    FilteredTable2018=Table.SelectRows(#"Full Backlog", each Date.Year([Customer Required Date])=2018),
    #"BL Waterfall2018" = List.Sum(Table.Column(FilteredTable2018,"Order Line")),
    #"Converted to List" = {[Backlog=#"BL Waterfall2017",Current=#"BL Waterfall2018"]},
    #"Converted to Table" = Record.ToTable(#"Converted to List"{0})

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.