I'm struggling with DAX, and want to complete the simple task of counting the number of games hosted by a given player (one table) based on the distinct number of rows in another table (game_instance).
Tables:
game_instance (id, owner_id, x, y, z)
player (id, x, y, z)
My Measure is as such:
Hosted Games = CALCULATE(DISTINCTCOUNT(game_instance[id]), FILTER(game_instance, game_instance[owner_id] = [id]))
I'm getting blank, but I know this not to be true, what is wrong with this measure.
I cannot create a relationship, as there is already a chain relationship, so powerbi will not allow me to make a direct one.