Forum Discussion
Anonymous
6 years agoNot applicable
Create a calculated row
I have a "User registration date" and "product purchase date" in my dataset... Simply what I want to do is; when I change date range in slicer, how many of them have become members between these d...
- 6 years ago
hi, Anonymous
Use DISTINCTCOUNT in the formula
Result 3 = var _fromdate=CALCULATE(MIN(Sheet1[New Transaction Date]),ALLSELECTED(Sheet1)) var _enddate=CALCULATE(MAX(Sheet1[New Transaction Date]),ALLSELECTED(Sheet1)) return CALCULATE ( DISTINCTCOUNT( Sheet1[WalletID] ), FILTER ( Sheet1 , Sheet1[New Wallet Createddate] >= _fromdate && Sheet1[New Wallet Createddate] <= _enddate ) )Regards,
Lin
Anonymous
6 years agoNot applicable
According to dataset;
Transaction Date= purchase date
Wallet Createddate= membership date
Mariusz
6 years agoCommunity Champion
Hi Anonymous
I've attached the file with the solution.
You will need to create a calendar table / date dimension with one active and one inactive relationship to achieve this.
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.

Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
