Forum Discussion
How to group data on table
- Anonymous9 years ago
Hi Aweklin,
Perhaps you can try to use group function of power query.
Referecn link:
Group rows in a table (Power Query)
Regards,
Xiaoxin Sheng
- 9 years ago
Hi Aweklin
If your datasource is an SQL datasource then you can just run this SQL as your query into your table and let the DB Engine do the grouping. Otherwise you can do this both in the Query Editor and in DAX.
In DAX the forumla will look something like :
New Table = SUMMARIZE ( '<your table>' , [Name] , "ProductCount" , COUNTROWS('<your table>') )
You should be able to add Category and ID to a table visualization. On the ID click the little down arrow and select "Count" (Values section of the table element on the right side menu).
I'm not familiar with QlikView. You can use SQL to get your data into Power BI from a source that supports it, but DAX is used to create measures and calculated columns within the model.
Brett