Forum Discussion
amira_bedhiafi
8 years agoRegular Visitor
Count and group by
I am beginner at Power BI and I'm trying to group my data by "Opp title" and count the number of rows of dates: The result will be :
- 8 years ago
Hello amira_bedhiafi,
Please try something like the following:
= Table.Group(#"Changed Type", {"Opp title"}, {{"CountRows", each Table.RowCount(_), type numberYou will probably want to use the Group By in the ribbon; Transform -> Group By -> Window as shown below as I do not know the steps that have been applied to your dataset. (e.g. #"Changed Type" is the last step in my sample dataset.)
It is not necessary to count specificially dates any row count will do.
ChrisMendoza
Resident Rockstar
8 years agoHello amira_bedhiafi,
Please try something like the following:
= Table.Group(#"Changed Type", {"Opp title"}, {{"CountRows", each Table.RowCount(_), type numberYou will probably want to use the Group By in the ribbon; Transform -> Group By -> Window as shown below as I do not know the steps that have been applied to your dataset. (e.g. #"Changed Type" is the last step in my sample dataset.)
It is not necessary to count specificially dates any row count will do.