Forum Discussion
Freya
3 years agoRegular Visitor
Native Query
Hi, I'am a newbi to PBI and I have a question. I am using PowerBI Desktop which is linked to a PostgreSQL-database. There are very large tables so I would like to limited the linked tables with Di...
- 3 years ago
Found it 🙂
= Value.NativeQuery(PostgreSQL.Database("000.000.00.0:5432", "kbo"), "select * from address where ""ID"" in (select max(""ID"") from address group by ""Enterprise_Nbr"")", null,[EnableFolding=false] )
amitchandak
Super User
3 years agoFreya , Strange , Try like
select * from public.address
where "ID" in (select max("ID") from public.address a
group by "Enterprise_Nbr")