Forum Discussion
Mirithu
4 years agoHelper II
Remove Distinct Count From Grand Total
Hi, I have a common problem with incorrect grand totals but cannot seem to get a solution from previous posts. I have data with customer numbers and dates columns. I am calculating the distinct ...
philouduv
4 years agoResolver III
Hey Mirithu ,
First create a table with every months (seclect new table and write
months = SELECTCOLUMNS(distinct(datasource[datetable].[Month]),"month",(datasource[datetable].[Month]))
Then create a new column on this table nbr_customer which will be the following :
Then create a new column on this table nbr_customer which will be the following :
nbr_custo = calculate(DISTINCTCOUNT(datasource[Customer]),
FILTER(ALL(datasource),
months[month] = datasource[datetable].[Month]))
After this point you should have a column with the count on every month (months with no customer will be blank)
Then just add in the matrix the month column(rows) and nbr_custo(values) it should do the trick
Best regards,
After this point you should have a column with the count on every month (months with no customer will be blank)
Then just add in the matrix the month column(rows) and nbr_custo(values) it should do the trick
Best regards,