Hi @kalos ,
You can import additional data to import costs per “Logged by” user.
See the “Rates import for a user” in this community post:
Or you can use the CASE WHEN statement. The formula for “Rate” would be this:
CASE [Logged by].CurrentHierarchyMember.Name
WHEN "User 1" then 40
WHEN "User 2" then 50
ELSE 0
END
To get the total expenses, use this formula:
Sum(
Filter(
DescendantsSet(
[Logged by].CurrentHierarchyMember, [Logged by].CurrentHierarchy.Levels("User")),
[Measures].[Hours spent]>0
),
[Measures].[Rate]*[Measures].[Hours spent]
)
best,
Gerda // support@eazybi.com