Forum Discussion
Anonymous
7 years agoNot applicable
Entering Data using date column as a filter
Hello, I have the following dataset, where PK_Date represents a date column of every date from 2015-2020. In the column SHIP_UNITS_BY_UOM, values will either be non-zero or blank(). I would like ...
- Anonymous7 years ago
HI Anonymous,
You can try to use below formula if it works for your scenario:
Measure = IF ( MAX ( D_Date[PK_Date] ) < TODAY () && SUM ( 'F_INVOICE'[SHIP_UNITS_BY_UOM] ) = BLANK (), SUM ( 'F_INVOICE'[SHIP_UNITS_BY_UOM] ) + 0, BLANK () )If my formula not help, please share some sample data to test and coding formula.
Regards,
Xiaoxin Sheng
Anonymous
7 years agoNot applicable
HI Anonymous,
You can try to use below formula if it works for your scenario:
Measure =
IF (
MAX ( D_Date[PK_Date] ) < TODAY ()
&& SUM ( 'F_INVOICE'[SHIP_UNITS_BY_UOM] ) = BLANK (),
SUM ( 'F_INVOICE'[SHIP_UNITS_BY_UOM] ) + 0,
BLANK ()
)
If my formula not help, please share some sample data to test and coding formula.
Regards,
Xiaoxin Sheng
- Anonymous7 years agoNot applicable
Thank you for the quick response. I just tried it on the dataset, and it works where all fields past today() are blank; however, there is something flagging the if statement FALSE when summing SHIP_UNITS_BY_UOM as now all of those entries are blank() as well. See image below and linked dataset ( https://transfernow.net/755714110tj2) with result.