Forum Discussion
Divide / multiply by a fixed figure
Anonymous i didn't understood your question. it should not be very hard. can you share sample data and what you want to achieve as the final result.
Literally
300000 / Workingdays =
WorkingDays = CALCULATE(sum('date'[IfWorkDay]))
I can't seem to find a way to do this as it wants to reference a field. 30000 doesn't exist in a field it's a static figure.
- parry2k7 years agoSuper User
Anonymous assuming your workingdays formula is correct:
you can do this:
WorkingDays = VAR workingDays= CALCULATE(sum('date'[IfWorkDay])) VAR fixedValue = 30000 RETURN DIVIDE( fixedValue, WorkingDays)- Anonymous7 years agoNot applicable
For some reason this is multiplying not dividing?
I've taken the variable: fixedvalue to 1 and it multiplies itself by the amount of working days. (Working days are showing correctly).
- parry2k7 years agoSuper User
Anonymous can you share the output of your result, it is very hard to figure out what is going on, and if possible provide the sample data .