Forum Discussion
iioannou
8 years agoHelper I
Filtering and DAX question
Hello, I have a very simple question and I need some help. I have this custom column Occupancy % TMY = (('Almyra Rooms'[Rooms Sold (net of CPL)] * 100) / 'Almyra Rooms'[Capacity]) / 25 ...
- Anonymous8 years ago
Occupancy % TMY = var DateDiff = DATEDIFF(
CALCULATE(MIN('Date'[Date]);ALLSELECTED('Date'[Date]));
CALCULATE(MAX('Date'[Date]);ALLSELECTED('Date'[Date]));
DAY) return (('Almyra Rooms'[Rooms Sold (net of CPL)] * 100) /
'Almyra Rooms'[Capacity]) / DateDiff)
But it will work as measure only, not as calculated column...
Anonymous
8 years agoNot applicable
Occupancy % TMY = var DateDiff = DATEDIFF(
CALCULATE(MIN('Date'[Date]);ALLSELECTED('Date'[Date]));
CALCULATE(MAX('Date'[Date]);ALLSELECTED('Date'[Date]));
DAY) return (('Almyra Rooms'[Rooms Sold (net of CPL)] * 100) /
'Almyra Rooms'[Capacity]) / DateDiff)
But it will work as measure only, not as calculated column...