Forum Discussion
Anonymous
6 years agoNot applicable
Dynamic Date IF Statement
Hi, I'm trying to do a simple IF Statment but it doesn't seem to work; I'm trying to created a calculate column to use as a customer filter. I'm looking at 3 Columns as listed below: (...
- 6 years ago
Hi Anonymous
Do you check my answers above?
these are all measures instead of columns
max selected = MAX('calendar'[Date]) Measure = IF([max selected]>MAX([start])&&[max selected]<=MAX([end]),"Include","exclude")Best Regards
Maggie
FrankAT
6 years agoCommunity Champion
Hi,
try the following measure:
Report Filter =
IF (
MIN ( 'dwh InventoryTenancy'[Start] )
> CALCULATE ( MIN ( 'Date'[Date] ), ALLSELECTED ( 'Date' ) ) &&
MIN ( 'dwh InventoryTenancy'[End] )
<= CALCULATE ( MAX ( 'Date'[Date] ), ALLSELECTED ( 'Date' ) ),
"Include",
"Exclude"
)Regards FrankAT
- Anonymous6 years agoNot applicable
Hi FrankAT,
thanks for your input, I currently getting the insufficent memory error, ( I have 32gb RAM and am connecting to a datawarehouse) so I don't think its really a memory issue.