Forum Discussion
chris_rowley
5 years agoFrequent Visitor
SumIF less than a specified number
Hi all I have a table that contains data pulled from our time recording system. After some manipulation I have these fields: Total_Hours_Per_week Hourly_Rate Max_hours_Per_Month Each staff ...
P_D_G
5 years agoResolver III
hi chris_rowley ,
creating this measure should work:
if(
sum('Table'[Total_Hours_Per_Week] ) > min('Table'[max_hours_per_month]),
min('Table'[max_hours_per_month]),
sum('Table'[Total_Hours_Per_Week])
)
)
* min('Table'[Hourly_rate])
However, I'd reconsider restructuring your data, for example creating a separate tables with the
1) Month_Name & Max_Hours_per_Month values
2) Staff_Name &Hourly_rate
This might inprove the performance of your model.
However, I'd reconsider restructuring your data, for example creating a separate tables with the
1) Month_Name & Max_Hours_per_Month values
2) Staff_Name &Hourly_rate
This might inprove the performance of your model.
PDG