Forum Discussion
AllG
5 years agoFrequent Visitor
Measure with row level calculations
Need help to create measure with row level calculations instead of calculated column.
For example:
Revenue = Posted Hours * Hourly Rate
Tables:
- Employee table with general information about employees (Emp ID, Name, BU, Leader, Manager, CC ect.)
- Transaction table with posted hours (Emp ID, Posted Hours, Transaction Date)
- Hourly Rate table (Emp ID and Hourly Rate)
Relationships:
Employee[Emp ID] : Transaction[Emp ID]
Employee[Emp ID] : Hourly Rate[Emp ID]
Summary required: Revenue by Leaders, Managers and BU by Months (matrix, like pivot table)
It's hard to say exactly what you need but the general approach would be something along these lines:
Revenue = SUMX ( Transaction, Transaction[Posted Hours] * RELATED ( HourlyRate[Hourly Rate] ) )
2 Replies
- AlexisOlson
Super User
It's hard to say exactly what you need but the general approach would be something along these lines:
Revenue = SUMX ( Transaction, Transaction[Posted Hours] * RELATED ( HourlyRate[Hourly Rate] ) )- AllGFrequent Visitor
Awesome!! thanks