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.
Hello - I am wondering it it is possible to create a measure filtered by multiple related records. For example, a contact table is related to an activities table. I would like to count the contacts that have activities with the subject of "call1" and "call2". Where I think I am getting stuck is that it's multiple activities needing to be considered.
Thanks in advance!
Rob
Solved! Go to Solution.
hi @Anonymous
Try this logic:
CALCULATE(<expression>,FILTER('Table',"call1" in VALUES('Table'[subject]) && "call2" in VALUES('Table'[subject]) ))
If you still have the problem, please share some simple sample data and your expected output.
Regards,
Lin
@Anonymous , Not sure I got it.
A new measure like
calculate([Measure], filter(Table, Table[subject] in { "call1" , "call2"}))
Thanks for the quick reply, but unfortunately not the end result I am expecting. This seems to operate more as an OR statement than an AND statement. I only want to count the count the contacts with both... thoughts?
Thanks again!
Rob
hi @Anonymous
Try this logic:
CALCULATE(<expression>,FILTER('Table',"call1" in VALUES('Table'[subject]) && "call2" in VALUES('Table'[subject]) ))
If you still have the problem, please share some simple sample data and your expected output.
Regards,
Lin
Thanks! This works!
TBH, I don't really understand they syntax here, but it does work!
Rob
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 |
---|---|
105 | |
96 | |
79 | |
67 | |
62 |
User | Count |
---|---|
137 | |
106 | |
104 | |
81 | |
63 |