Forum Discussion
SachinNamdeo-20
Helper II
3 years agoActive customers count
"Dear community, I have 5 years of data at the invoice level. I am trying to calculate the no. of customers who purchased at least 3 times in the current FY and sales quantity of that customers. FY ...
- 3 years ago
If you have a date table linked to the fact table you can try
Active Customers = VAR SummaryTable = ADDCOLUMNS ( SUMMARIZE ( Sales, Sales[Customer] ), "@num months", COUNTROWS ( CALCULATETABLE ( SUMMARIZE ( Sales, 'Date'[Year month] ) ) ) ) RETURN COUNTROWS ( FILTER ( SummaryTable, [@num months] >= 3 ) ) - 3 years agocalculation done
Active dealer in ficial year = CALCULATE([Active Customers],DATESYTD(Calendar_new[Date],"03/31"))
SachinNamdeo-20
Helper II
3 years ago"Thank you for your valuable suggestion but it gives me blank value, Please suggest me any other measure i also mention my pbi file above"
johnt75
Super User
3 years agoYour date table isn't linked to the invoice table. You need to link it on the appropriate field.
- SachinNamdeo-203 years ago
Helper II
"Sorry for mistake sir in this file date is linked with cube invoice but it also return blank value"
https://drive.google.com/file/d/1QPMBDmnmupMDBqSofXjaLCB6OpV3TAKo/view?usp=sharing