Forum Discussion
JHob
Advocate I
6 years agoDirect query connection to Mongo DB using ODBC
Hi I would be grateful for some help. I have a Gateway setup that allows me to connect to Mongo DB using ODBC. I have setup a Power BI Dataflow to connect to the Datasource and connect to th...
HamidBee
Power Participant
3 years agoI was able to fix the following by firstly using Import mode instead of DirectQuery. Here are the full steps I followed:
No I need to use the EnableFolding=true command and this is only available when using the Value.NativeQuery function. I created a new step and typed the following:
= Value.NativeQuery( Source, "
SELECT OID.OrderID,O.OrderDate,UnitPrice*Quantity AS Total
FROM Orders As O
FULL OUTER JOIN [Order Details] AS OID
ON O.OrderID = OID.OrderID", null, [EnableFolding=true])
Now if I apply any parameter based filters to the dataset it will work without any errors.