Forum Discussion
Active customers count
- 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"))
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 ) )
- SachinNamdeo-203 years ago
Helper II
"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"
- johnt753 years ago
Super User
Your 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
- SachinNamdeo-203 years ago
Helper II
Sir IF we want the same calculation on ficial year how would we can, please suggest
DATESYTD(Calendar_new[Date],"03/31") - SachinNamdeo-203 years ago
Helper II
"Sir IF we want the same calculation of your given measure on ficial year how would we can, please suggest".
DATESYTD(Calendar_new[Date],"03/31")- SachinNamdeo-203 years ago
Helper II
calculation done
Active dealer in ficial year = CALCULATE([Active Customers],DATESYTD(Calendar_new[Date],"03/31"))
- SachinNamdeo-203 years ago
Helper II
Thank you sir for your valuable suggestion