Forum Discussion
NewbieJono
1 year agoPost Partisan
Calculating based on Max Date
Hello, i am looking to calculate the total volume by each date for the Max date of receipt only: example below.
- 1 year ago
Hi NewbieJono
Please try this:
Measure1 = VAR MaxDate = CALCULATE ( MAX ( 'Table'[Receipt date] ), ALL ( 'Table'[Receipt date] ) ) RETURN SUMX ( VALUES ( 'Table'[Date] ), CALCULATE ( SUM ( 'Table'[Randvalues] ), FILTER ( 'Table', 'Table'[Receipt date] = MaxDate ) ) )
mh2587
1 year agoSuper User
Total Volume for Max Receipt Date = //try this one
VAR MaxReceiptDate = MAX('TableName'[ReceiptDate])
RETURN
CALCULATE(
SUM('TableName'[Volume]),
'TableName'[ReceiptDate] = MaxReceiptDate
)