I have the following table, called score, on power BI over which I want to apply a group by date:
I have looked into the official documentacion but the examples are rather complex for my use case. I have tried the following:
Columna = GROUPBY(copia_scores;copia_scores[Date];"result";COUNT(CurrentGroup))
But it says that COUNT anly acept a column as input, but if I use a column:
Columna = GROUPBY(copia_scores;copia_scores[Date];"res";COUNT(copia_scores[Date]))
Then it says that the aggregation has to be done with CurrentGroup.
EDIT:
What I'm traying to get a new column with the count of classes by date.
Basically the agregation of the groupby as in the bellow table.
Total_dia has the count of records by day, which is 4 for the 12-02-2018.
I did that in the query editor but I need to do the same in the main windows using DAX.
SUM
. This will give you a (slow) count of records by whatever you drop on the page. Do you want to count records or unique classes? If unique classes then use aDISTINCTCOUNT
– Nick.McDermaid