Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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.
Solved! Go to Solution.
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})
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})
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |