Forum Discussion
jsbi81
8 years agoNew Member
Create date Parameter (asat date) to get active customers
Hi, I'm new to PowerBi. I have got the total count of customers and now trying to create a date Parameter to show active customers asat date. In SQL and Tableau I'm able to achieve this using the...
- 8 years ago
You may refer to the following measure.
Measure = VAR d = SELECTEDVALUE ( 'Calendar'[Date] ) RETURN COUNTROWS ( FILTER ( Table1, Table1[Start Date] <= d && ( ISBLANK ( Table1[End Date] ) || Table1[End Date] > d ) ) )
v-chuncz-msft
Community Support
8 years ago
You may refer to the following measure.
Measure =
VAR d =
SELECTEDVALUE ( 'Calendar'[Date] )
RETURN
COUNTROWS (
FILTER (
Table1,
Table1[Start Date] <= d
&& (
ISBLANK ( Table1[End Date] )
|| Table1[End Date] > d
)
)
)