Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi
I have a situation
Table name : app_interaction
Columns: appname, activity, userid, created_on(date)
Now I want to bulid the table visual with year, month, distinct count(userid) as count of unique IDs , and next I want I want calculate the total YTD of unique user IDs,
Here while calculating
If Jan has 12 unique users and Feb has 10 unique
So YTD I need is 32 because I have the monthly cost/user to be multiplied to the value 32
The problem is it's giving me the less than the 32. As it's removing the number of common users in two months
Can someone please help me to do this
Solved! Go to Solution.
Hi @mgr13
You can refer to the following measure
Sample data
Measure
Measure = var a=SUMMARIZE(ALLSELECTED(app_interaction),app_interaction[created_on].[Year],app_interaction[created_on].[MonthNo],"Distinct",CALCULATE(DISTINCTCOUNT(app_interaction[userid])))
return IF(DISTINCTCOUNT(app_interaction[userid])<>BLANK(),SUMX(FILTER(a,[created_on].[Year] in VALUES(app_interaction[created_on].[Year])&&[created_on].[MonthNo]<=SELECTEDVALUE(app_interaction[created_on].[MonthNo])),[Distinct]))
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Thanks for your support.
I have a question
For the above data
I had to calculate the past 90 day unique users for every month and the next colum I need to do the YTD of the above in a table visual.
Thanks
Guru
Any one please help me out for this
@mgr13- Check this out, let me know if this works.
YTD Unique User IDs =
CALCULATE(
DISTINCTCOUNT('app_interaction'[userid]),
CALCULATETABLE(
VALUES('app_interaction'[userid]),
DATESYTD('app_interaction'[created_on])
)
)
I've hypothetically established this DAX measure, but without much clarity regarding your datasets. If this doesn't serve your needs, I recommend you share a sample dataset. This will give me a more comprehensive understanding of your data structure, enabling me to devise a more suitable solution. Cheers
Thanks for sharing ur insignt @Manoj_Nair
I have tried the dax code that you have given but it's giving the same as unique user IDs
but what I need is the Excel image I shown
here I am providing the pic of a data sample
could you refer thes information and provide me some guidance if possible
Thanks
Hi @mgr13
You can refer to the following measure
Sample data
Measure
Measure = var a=SUMMARIZE(ALLSELECTED(app_interaction),app_interaction[created_on].[Year],app_interaction[created_on].[MonthNo],"Distinct",CALCULATE(DISTINCTCOUNT(app_interaction[userid])))
return IF(DISTINCTCOUNT(app_interaction[userid])<>BLANK(),SUMX(FILTER(a,[created_on].[Year] in VALUES(app_interaction[created_on].[Year])&&[created_on].[MonthNo]<=SELECTEDVALUE(app_interaction[created_on].[MonthNo])),[Distinct]))
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
11 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
25 | |
19 | |
16 | |
10 | |
7 |