Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
Hi @esclare
Try this for your new calculated column in Table2. See it working in this file
NewColValue = VAR _MaxDate = CALCULATE ( MAX ( Table1[Date] ), FILTER ( Table1, Table1[ID_House] = Table2[ID_House] ) ) RETURN LOOKUPVALUE ( Table1[Value], Table1[Date], _MaxDate, Table1[ID_House], Table2[ID_House] )
Hi @esclare
Try this for your new calculated column in Table2. See it working in this file
NewColValue = VAR _MaxDate = CALCULATE ( MAX ( Table1[Date] ), FILTER ( Table1, Table1[ID_House] = Table2[ID_House] ) ) RETURN LOOKUPVALUE ( Table1[Value], Table1[Date], _MaxDate, Table1[ID_House], Table2[ID_House] )
Thanks @AlB but didn't work: "A table of multiple values was supplied where a single value was expected."
I introduced a change because I have blank values:
VAR _MaxDate = CALCULATE ( MAX ( table1[date] ); FILTER ( vavue; table1[id] = table2[id] ) ) RETURN CALCULATE ( FIRSTNONBLANK ( table1[value]; 1 ); FILTER ( ALL ( table1); table1[date] = _MaxDate && table1[id] = table2[id] ) )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |