Forum Discussion
eric98
Helper II
4 years agoFind two different last date in the same column
Hello everyone. I'm facing an issue and you may help me with that. As you will see in the table below, I have four columns : invoice_number, invoice_date, customer_number, customer_machine_number. ...
- 4 years ago
I finally solve the problem with this measure :
Date1 = CALCULATE( MAX([INVOICE_DATE]), FILTER(INVOICE_TABLE, AND(CUSTOMER_NUMBER <> BLANK(), MACHINE_NUMBER <> BLANK())))And for the second date, just do Date2 = MAX(INVOICE_DATE)
mh2587
Super User
4 years agomeasure 1 = // where machine and customer number not null
CALCULATE(MIN(Table[Invoice Date]),AND('Table'[Customer_Number] <> BLANK(),'Table'[Machine_Number] <> BLANK())
measure 2 = MIN(Table[Invoice Date])
measure 2 = MIN(Table[Invoice Date])