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.
Hello I usted the following code to calculate a total sum of production per year, but now I have 3 differente tables for each product and year, want all of them in one table that have Year, TotalWWIT, TotalWWPT, TotalWOPT, how can I do this?
#"Grouped Rows2" = Table.Group(#"Filtered Rows", {"Year"}, {{"TotalWWIT", each List.Sum([Difference WWIT]), type number}}),
#"Grouped Rows1" = Table.Group(#"Filtered Rows", {"Year"}, {{"TotalWWPT", each List.Sum([Difference WWPT]), type number}}),
#"Grouped Rows" = Table.Group(#"Filtered Rows", {"Year"}, {{"TotalWOPT", each List.Sum([Difference WOPT]), type number}})
I don´t understand, do I have to use table.addcolumn and inside it this:
#"Grouped Rows2" & #"Grouped Rows1" & #"Grouped Rows1"
???
If you just want to return this as one table, you just add a new step manually and paste the code there (overwrting the name of the previous step, that will appear as the default-value):
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
I got this error When I used the previous step:
Hi @OscarSuarez10 ,
Do you add the step before the "Difference WWPT"?
If it is convenient, could you share your M query so that we could give further advice?
@ImkeF ,any ideas?
Best Regard,
Cherry
Hi @OscarSuarez10 ,
you can combine most objects in PQ using the ampersand ("&").
#"Grouped Rows2" & #"Grouped Rows1" & #"Grouped Rows1"
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.