Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
aj1973
Community Champion
Community Champion

Filtered Rows against View native query

Hi,

When i apply "Filtered Rows" in Query Editor the "View native query" is greyed out when I right click on the Applied step!!

This means that the query folding will not take effect at this step in the server and therefore the hard work will be done by my desktop and of course more time is consumed.

 

Is there a solution to this?  

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @aj1973 ,

 

Now, if I introduce a new transform like Capitalize Each Word, which we know Query Folding doesn’t support, notice that the option to View Native Query is disabled.

 

This also means any transform that we add after this one will not be folded and the View Native Query option will continue to be disabled.  However, don’t forget that queries can be partially folded, which means any transform that was applied prior to this unsupported function will still be folded and will allow you to use the View Native Query option.

]

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @v-frfei-msft 

 

I already know what you are saying and it is not the answer.

I can reply to my propre question now because i found out the answer: the ODBC driver 32 bits i am using to connect to the source does not support Native query(query folding). I used different type of connectivity and it worked.

 

So the question would be for Microsoft entreprise to answer it and may be to fix the issue for ODBC driver users.

 

Thanks  

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

ctbtop
Frequent Visitor

Hello @aj1973 

 

what have you done?

I've the same problem, i'm using sqlite3 64 bit odbc driver  and after filtering native query is disable.

 

Thank you.

aj1973
Community Champion
Community Champion

Hi there,

 

I am using an ODBC 32 Bit to connect to a PostgreSQL DB. Until now i am not sure which one of them is not compatible with Power BI in order to enable filtering native query. 

 

A work around i did is I wrote a SQL Statement directly into the source of the Table in Power query Editor.

Also you can write an M code using the advanced editor in Query Editor: 

let
Source = Odbc.Query("dsn=DB", "select ""ACCT_NO"",#(lf) ""TRANS_NO"",#(lf) ""MF_TRAN"",#(lf) ""TRAN_DATE""#(lf)from ".........
in
Source

 

For me it worked good, the loading time was cut down by 26 mins.

 

Good luck and let me know if this will work for you or maybe a new solution came along.

 

Thanks  

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors