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.
I am trying to calculate the count of unique events that took place withing my data.
The issue is, the relationships aren't matching up properly(as you can see in the image with the resulting table and a couple of the measures I tried). For some reason, it isn't matching on the key for all values, and therefore treats them as a wierd hybrid composite key.
The last image of the "Correct Result Table", is what it should look like. So basically, a group by `TaskId from History`, sum of the Session Count for each.
I've tried a bunch of different DISTINCTCOUNT, SUMX, COUNT measures, but am overlooking something.
Any help is appreciated, thank you.
EDIT:
I made some progress. I managed to calculate the correct value when no slicer filters are applied. I still need to figure out how to make slicers work with this too.
Solved! Go to Solution.
The solution came down to using the function USERELATIONSHIP.
It's not clear to me what you are expecting to see.
Thank you for pointing out how unclear my post was. I have edited it for additional clarity.
I'm not the most advanced DAX coder, but I know in R it would be something like this code chunk:
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 |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |