Forum Discussion
Anonymous
6 years agoNot applicable
Add column based on lookup in same table
Hi, I'm trying to understand how I can create a column with a Lookup in the same table using a DAX expression In excel it would look like this, I'm looking to match the records of the last mo...
- Anonymous6 years ago
Hi Anonymous ,
Create a Calculated Column
Column = LOOKUPVALUE(Table5[Records],Table5[Date],Table5[Last Month Date])Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Anonymous
6 years agoNot applicable
Hi Anonymous
VAR SearchValue = <Search_Value>
RETURN
CALCULATE (
SELECTEDVALUE ( <Result_ColumnName>, <Alternate_Result> ),
FILTER (
ALLNOBLANKROW ( <Search_ColumnName> ),
<Search_ColumnName> == SearchValue -- The == operator distinguishes between blank and 0/empty string
),
ALL ( <table_of_Result_ColumnName> ) -- If Result_ColumnName is t, this is ALL ( t )
)
Did I resolve your issue? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!!!
Regards,
Pranit