Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all, I have a requirement to create a count of distinct users who clicked both x and y using website analytic data. After some researching I am struggling to understand how to do this and would welcome any suggestions/help.
I have included a screenshot of sample data as the forum software kept removing the HTML table:
From the table above the resulting measure shoud show a count of 2, i.e. 2 distinct users clicked BOTH X and Y.
Solved! Go to Solution.
Pls try this
MEASURE =
var tbl=SUMMARIZE(FILTER('Table','Table'[Clicked]="X" || 'Table'[Clicked]="Y"),'Table'[USER_ID],"COUNT",DISTINCTCOUNT('Table'[Clicked]))
RETURN COUNTROWS(FILTER(tbl,[COUNT]=2))
Proud to be a Super User!
Pls try this
MEASURE =
var tbl=SUMMARIZE(FILTER('Table','Table'[Clicked]="X" || 'Table'[Clicked]="Y"),'Table'[USER_ID],"COUNT",DISTINCTCOUNT('Table'[Clicked]))
RETURN COUNTROWS(FILTER(tbl,[COUNT]=2))
Proud to be a Super User!
@DanNewton , Try a measure like this with user ID
countx(filter(summarize(Table, Table[User], "_1", calculate(distinctcount(Table[Clicked]), filter(Table, Table[Clicked] in {"X", "Y"}))),[_1] =2),[User])
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
48 | |
47 |