Forum Discussion
mrpowrbihelp
8 years agoFrequent Visitor
last visit
Hi, I have a table that looks like this: Account # Visit Date Items Carried Contact Name 124 1/8/16 Apples Mark 124...
- 8 years ago
Hi mrpowrbihelp
Use this Measure to get Last Item Carried
Last_Item_Carried = LASTNONBLANK ( CALCULATETABLE ( ALL ( Table1[Items Carried] ), FILTER ( Table1, Table1[Account #] = SELECTEDVALUE ( Table1[Account #] ) ) ), CALCULATE ( VALUES ( Table1[Items Carried] ) ) ) - 8 years ago
HI mrpowrbihelp
These MEASURES to get the LAST VISIT DATE and the RELATED CONTACT NAME
Last_Visit_Date = MAX ( Table1[Visit Date ] )
Last_Contact_Name = CALCULATE ( SELECTEDVALUE ( Table1[Contact Name] ), FILTER ( ALL ( Table1 ), Table1[Account #] = SELECTEDVALUE ( Table1[Account #] ) && Table1[Visit Date ] = MAX ( Table1[Visit Date ] ) ) )
Zubair_Muhammad
8 years agoCommunity Champion
Hi mrpowrbihelp
Use this Measure to get Last Item Carried
Last_Item_Carried =
LASTNONBLANK (
CALCULATETABLE (
ALL ( Table1[Items Carried] ),
FILTER ( Table1, Table1[Account #] = SELECTEDVALUE ( Table1[Account #] ) )
),
CALCULATE ( VALUES ( Table1[Items Carried] ) )
)Zubair_Muhammad
8 years agoCommunity Champion
HI mrpowrbihelp
These MEASURES to get the LAST VISIT DATE and the RELATED CONTACT NAME
Last_Visit_Date = MAX ( Table1[Visit Date ] )
Last_Contact_Name =
CALCULATE (
SELECTEDVALUE ( Table1[Contact Name] ),
FILTER (
ALL ( Table1 ),
Table1[Account #] = SELECTEDVALUE ( Table1[Account #] )
&& Table1[Visit Date ] = MAX ( Table1[Visit Date ] )
)
)- Zubair_Muhammad8 years agoCommunity Champion