Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I'm new to Power BI and I'm having some trouble connecting to a PostgreSQL database and importing the data.
Background:
My question is: which is the most eficient way to filter this data?
Thanks in advance for your help!
Solved! Go to Solution.
Hello @Divinal_ThiagoP,
You could write a query that joins your target table with the date-containing table and filters based on the date:
SELECT t.*, d.date_field
FROM target_table t
JOIN date_table d ON t.date_id = d.id
WHERE d.date_field >= CURRENT_DATE - INTERVAL '2 years'
Hope this helps!
Hello @Divinal_ThiagoP,
You could write a query that joins your target table with the date-containing table and filters based on the date:
SELECT t.*, d.date_field
FROM target_table t
JOIN date_table d ON t.date_id = d.id
WHERE d.date_field >= CURRENT_DATE - INTERVAL '2 years'
Hope this helps!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.