Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I am trying to fetch the row with the condition that:
if the data is 'equal to' then that row;
else the recent most previous date
So in this case I would want the row with the date 1/12/2021 for 1/03/2023. Had there been the same date 1/03/2023 in the bottom table then I would want to pick that row.
Solved! Go to Solution.
sounds good. What have you tried and where are you stuck?
sounds good. What have you tried and where are you stuck?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Check out the July 2026 Power BI update to learn about new features.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.