Forum Discussion
Anonymous
7 years agoNot applicable
Active Clients by Month
Hi I am new to Power Bi and need some help in trying to be able to calculate "active clients" by program each month. I am using a connection directly to a CMS system which is providing me with th...
- 7 years ago
hi, Anonymous
Here is the same post for you refer to:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365
For your case, just add a conditional that if there is no value in "program end date" should it be "Today" or other default date.
Best Regards,
Lin
Anonymous
7 years agoNot applicable
Hi, Anonymous. If I understand your goal, you can use the FILTER function together with a DATE table in order to get just the active clients between the dates. Try something like this:
Active Clients =
CALCULATE (
COUNT ( NameTable[Clients] );
FILTER (
NameTable;
NameTable[program_start_date] >= MIN ( Date[Date] )
&& NameTable[program_end_date] <= MAX ( Date[Date] )
)
)