Forum Discussion
Occupany, Culmulative total help
molzmad ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Try
a new column =
if([Occupancy] <0 , 0, [Occupancy])
- molzmad5 years agoHelper I
Hi, i have attached a sample here, i tried do the new column and it didnt work :(, thanks so much for taking a look i really appreciate it 🙂
https://drive.google.com/file/d/11ubbPcRiZDj--3osMqBtXziRB4mZ5r3m/view?usp=sharing- molzmad5 years agoHelper I
I basically need it to do a running total, but if the total goes below zero then to make it zero, as i dont want the occupancy levels going into minus 🙂
- Anonymous5 years agoNot applicable
Hi molzmad ,
It's not clear to me. I did a test. Is the following result what you want?
Column = VAR x1 = CALCULATE ( SUM ( 'Enliteon_Office_Test Count_Events'[Ins_Outs] ), FILTER ( ALL ( 'Enliteon_Office_Test Count_Events' ), [Custom] <= EARLIER ( 'Enliteon_Office_Test Count_Events'[Custom] ) ) ) RETURN IF ( x1 < 0, 0, x1 )Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.