Forum Discussion
Merging multiple rows based on condition and aggregation
- 3 years ago
Hi, Anonymous ;
Sorry for the late reply, We could merge in powe query.
Add funtion.
= Table.Group(#"Changed Type", {"Batch"}, {{"Netweight", each List.Sum([NetWeight]), type nullable number}, {"a", each Text.Combine( [Date]," "), type nullable date}})The final show:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I found a solution however, this will turn your dates from "Date" format to "String" format. I don't really see a solution otherwise.
Table 2 is a calculated table that groups the original table by "BatchNo"(ID) and sums the "NetWeightShipped"(VALUE)
Hi pbi-novice,
I have applied your DAX code, the "Table 2" works well but "Loading Date" concatenates all the values (screenshot) of a specific BatchNo in the Fact_ShippingKPI table. Working around for using functions such DISTINCT, ALLNOBLANK, VALUES for Loading Date but not resolved.