Forum Discussion
donbonbon
8 years agoFrequent Visitor
problem with calculating retention
Hi, so for example I have this table I want to divide 115 by 1005, 20 by 1005, then 59 by 1215 etc. So I created a calculated measure, distcount of customers 1st month = VAR Coun...
- 8 years ago
Give this a shot
distcount of customers 1st month = VAR myvalue = SELECTEDVALUE ( Table[reg month] ) RETURN CALCULATE ( DISTINCTCOUNT ( Table[users] ), FILTER ( ALL ( Table[sale month] ), Table[sale month] = myvalue ) )
Zubair_Muhammad
8 years agoCommunity Champion
Give this a shot
distcount of customers 1st month =
VAR myvalue =
SELECTEDVALUE ( Table[reg month] )
RETURN
CALCULATE (
DISTINCTCOUNT ( Table[users] ),
FILTER ( ALL ( Table[sale month] ), Table[sale month] = myvalue )
)donbonbon
8 years agoFrequent Visitor
That worked amazingly! Thnx a lot