Forum Discussion

molzmad's avatar
molzmad
Icon for Helper I rankHelper I
5 years ago

Occupany, Culmulative total help

Hi, i basically have a column labeled occupancy 2, which is a culumaltive total of people entering or exiting a building, im wanting to understand how to modify my DAX so that the occupancy 2 cant go below zero, if anyone would be able to help it would be greatly appreciated 🙂

 

13 Replies

  • 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])