Forum Discussion

AdrienneB's avatar
AdrienneB
Frequent Visitor
5 years ago
Solved

Select * from Oracle query is not showing the Native Query, why?

Hi, I am trying to set up incremental refresh for the first time. I am experimenting with a pbix report with just one query in it, imported from an Oracle database. This query results in all of the rows of one table that has 16 rows, 6 columns, 3 of those are dates, 2 simple text fields and the last one is an integer.

 

My query is simple: 

select * from schema_name.table_name

 

The View Native Query is greyed out and I cannot figure out why.

Any help is highly appreciated! 🙏

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi AdrienneB 

    I reproduced your problem by use SQL Query when connect SQL database. I use query "selet * from school", and my View Native Query is greyed out as well.

    I think the View Native Query greyed out is caused by your SQL Query in Advance when you connect to data source. If you use sql query, it will cause query folding disabled.

    For reference: 

    View Native Query always disabled

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

2 Replies

  • AdrienneB not sure if it works with native query, create a view in the backend and use that directly or simply call that table and see if it works.

     

    Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS  I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi AdrienneB 

    I reproduced your problem by use SQL Query when connect SQL database. I use query "selet * from school", and my View Native Query is greyed out as well.

    I think the View Native Query greyed out is caused by your SQL Query in Advance when you connect to data source. If you use sql query, it will cause query folding disabled.

    For reference: 

    View Native Query always disabled

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.