Forum Discussion
Divide / multiply by a fixed figure
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.
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 ago
Super 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 .
- Anonymous7 years agoNot applicable
As you can see, I have adjusted the value to 1 and I've asked it to divide 1 by the amount of working days in the month. Instead it's multiplied it?