Forum Discussion
If date is between two dates return value
- 5 years ago
Hi, Anonymous
Try to create a measure like below :
__FiscalMonth = VAR _a = SELECTEDVALUE ( 'Rolling_Calendar'[Date] ) RETURN CALCULATE ( MAX ( 'Fiscal_Calendar'[FiscalMonth] ), FILTER ( ALL ( 'Fiscal_Calendar' ), 'Fiscal_Calendar'[EndFiscalMonth] >= _a && _a >= 'Fiscal_Calendar'[StartFiscalMonth] ) )Result:
Please refer to the attachment below for details
Is this the result you want? Hope this is useful to you
Please feel free to let me know If you have further questions
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Anonymous
Try to create a measure like below :
__FiscalMonth =
VAR _a =
SELECTEDVALUE ( 'Rolling_Calendar'[Date] )
RETURN
CALCULATE (
MAX ( 'Fiscal_Calendar'[FiscalMonth] ),
FILTER (
ALL ( 'Fiscal_Calendar' ),
'Fiscal_Calendar'[EndFiscalMonth] >= _a
&& _a >= 'Fiscal_Calendar'[StartFiscalMonth]
)
)
Result:
Please refer to the attachment below for details
Is this the result you want? Hope this is useful to you
Please feel free to let me know If you have further questions
Best Regards,
Community Support Team _ Zeon Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous5 years agoNot applicable
This is great! Thank you v-angzheng-msft !