Forum Discussion
MaxItaly
Helper III
8 years agoHelp creating a table based on another one (only distinct value)
Hello everyone, I'm having some problems trying to create a table. Let's say I have a table named "Table1", that has "Client", "Quantity". I may have more rows for the same "Client" with different...
MFelix
Super User
8 years agoHi MaxItaly,
You need to create a new table with the following sintax:
Table2 = SUMMARIZE(Table1,Table1[Client],"Quantit"y, SUM(Table1[Quantity]))
You can also duplicate the table on the query editor and choose transform make a group by client and sum the quantity.
Regards
MFelix
- MaxItaly8 years ago
Helper III
Woah: you opened me a new world!
I was not aware of this.I am still figuring out where to write that syntax, but I managed, in the meanwhile, to do it thanks to the graphic commands.
Many thanks!
- MFelix8 years ago
Super User
But just be aware that if you just want to summarize your table you don't need to do an additional table, you can use measures and visuals to give that result and only have 1 single table.
Regards,
MFelix
- MaxItaly8 years ago
Helper III
I know it, but way too often the tables are not optimized for Business Intelligence operations :(