Forum Discussion
NewbieJono
Post Partisan
2 years agoYear To Max Date
is there a method of doing a year to max date in a fact table. i need the year to start 01/04 and I need to calculate volumes to the max date of another dateset. i will also need to do a same...
- 2 years ago
Like this:
InScope = VAR _MaxFromFactTable = MAX( YOUR_FACT_TABLE[Date] ) RETURN IF( 'Calendar Table'[Date] <= _MaxFromFactTable, 1, 0 )
Good luck! 🙂
NewbieJono
Post Partisan
2 years agohow would i do the in scope calculation?
Sergii24
Super User
2 years agoLike this:
InScope =
VAR _MaxFromFactTable = MAX( YOUR_FACT_TABLE[Date] )
RETURN
IF(
'Calendar Table'[Date] <= _MaxFromFactTable,
1,
0
)
Good luck! 🙂