Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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])