Hi,
I'm trying to learn DAX and at the moment its driving me mad
I have two tables moved into the data model
d_people (list of people details including their location code)
d_locations (unique list of building names to location codes)
in d_people there is a field loc_code
In d_locations there is a field loc_code and building_name
I've linked the two loc_codes in the mode.
In the d_locations table i'm trying to add a calculated formula that simply counts the number of people in each building,
e.g
loc code,building name, sum of people in that building
I thought
=COUNTROWS(d_people[Loc_code])
would work, but it doesnt
help please
I'm trying to learn DAX and at the moment its driving me mad
I have two tables moved into the data model
d_people (list of people details including their location code)
d_locations (unique list of building names to location codes)
in d_people there is a field loc_code
In d_locations there is a field loc_code and building_name
I've linked the two loc_codes in the mode.
In the d_locations table i'm trying to add a calculated formula that simply counts the number of people in each building,
e.g
loc code,building name, sum of people in that building
I thought
=COUNTROWS(d_people[Loc_code])
would work, but it doesnt
help please