Forum Discussion
Anonymous
3 years agoNot applicable
How to create a calculated column in one table based on conditions from another table
Hi All, I am looking for an answer to the below question I have while preparing some visuals in Power BI. Appreciate your help and valuable advice on this query. I have data in a table (Users tab...
DimaMD
Solution Sage
3 years agohi Anonymous Create a calculated column in the Devices table
Max user =
CALCULATE (
MAX ('UsersTable'[User] ),
FILTER (
'UsersTable',
[Difference] = 'UsersTable'[Difference]
&& [deviceID] = DevicesTable[deviceID]
)
)
Anonymous
3 years agoNot applicable
- Anonymous3 years agoNot applicable
Hi DimaMD ,
To be more specific:
The problem I am facing with this solution is associated with MAX function.
MAX('Users'[accountName]) is returing the alphabetically higher value instead of the most frequent user.MAX('Users'[accountName])