Forum Discussion
jd8766
Helper II
3 years agoGet latest value from FACT table?
Hi, I have a customer dimension structured like the below I have a FACT table like the below (joined using CustomerKey) I want to add a column to my customer dimension tab...
- 3 years ago
LatestProductName = MAXX( TOPN( 1, FILTER( RELATEDTABLE( 'FACT' ), 'FACT'[OrderComplete] = 0 ), 'FACT'[OrderDate] ), 'FACT'[ProductName] )LatestProductDate = CALCULATE( LASTDATE( 'FACT'[OrderDate] ), 'FACT'[OrderComplete] = 0 )
ThxAlot
Super User
3 years agoLatestProductName =
MAXX(
TOPN(
1,
FILTER( RELATEDTABLE( 'FACT' ), 'FACT'[OrderComplete] = 0 ),
'FACT'[OrderDate]
),
'FACT'[ProductName]
)LatestProductDate =
CALCULATE( LASTDATE( 'FACT'[OrderDate] ), 'FACT'[OrderComplete] = 0 )