and so on. It is connected on a many to one relationship to a date dimension table called date_dimension I am trying to get Occupancy by this DAX Measure:
SUM ( 'Table'[Available] )
/ SUM ( 'Table'[Usable] )
MIN ( Date_Dimension[Date] ),
MAX ( Date_Dimension[Date] )
This works OK without any date filters applied, but if I apply a date filter I get this kind of behavior:
In this example I set a date filter 30 days prior to apr 22 2021. I guess I'm not understanding why the filter isn't passed to occupancy when both available and usable are both filtered correctly. You can't tell from that graph but during the period that it's supposed to be calculating it does calculate the correct value, but when its in a period that is not intended (in this case any date no 30 days prior to apr 22 2021) it defaults to 100%. Also note, I want the user to be able to see aggregate by day info or they could possibly see by a particular id by day based on whether they use a slicer or not.