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.
Hello,
Do you have any idea why this works :
VAR _date1_ = LOOKUPVALUE(t_intervention[int_date_programmation]; t_intervention[int_id]; [int_id])
And this doesn't works :
VAR _date2_ = LOOKUPVALUE(t_intervention[int_date_programmation].[Date]; t_intervention[int_id]; [int_id])
Is it foridden to use Date part in a LKP ?
Solved! Go to Solution.
Hi @Anonymous ,
Based on my test, the extend date fields like [Calendar].[Date] won't work with DAX function LOOKUPVALUE. As a workaround, you may try the DAX below.
VAR_date2_=
CALCULATE (
FIRSTNONBLANK (t_intervention[int_date_programmation].[Date] , 1 ),
FILTER ( ALL ( t_intervention), t_intervention[int_id]= [int_id])
)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on my test, the extend date fields like [Calendar].[Date] won't work with DAX function LOOKUPVALUE. As a workaround, you may try the DAX below.
VAR_date2_=
CALCULATE (
FIRSTNONBLANK (t_intervention[int_date_programmation].[Date] , 1 ),
FILTER ( ALL ( t_intervention), t_intervention[int_id]= [int_id])
)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |