Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 CountCustomers =
DISTINCTCOUNT( Table[users] ) RETURN CALCULATE(DISTINCTCOUNT(Table[users]),
FILTER(Table, Table[sale month]=Table[reg month]))
Then I created another calculated measure,
retention = DISTINCTCOUNT(Table[users])/[distcount of customers 1st month]*100
but it wouldnt get me a result I want:
Any ideas how to solve that?
Solved! Go to Solution.
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 ) )
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 ) )
That worked amazingly! Thnx a lot
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |