Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Quickly Filter Out Salesforce Object Fields

I have recently connected to Salesforce Object, however my opportunity or account object consist alot of fields. Is there a way to quickly filter out the object fields without writing any advance editior syntax ? 

The current way that I am doing is by manually removing the object one by one and it is very time consuming.

 

  • Anonymous's avatar
    Anonymous
    8 years ago

    Anonymous,

    In Query Editor of Power BI Desktop, you can use "Choose Column" option to select the columns that you want to reserve.


    Regards,
    Lydia

7 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    The easiest way is to use the choose columns interface/remove other columns as this allows you to search for the columns you want easier than removing one by one.

     

    Also if you include this at the start of your query, some query folding does happen in some cases but I havent worked out enough to say for sure what causes it.

    • Anonymous's avatar
      Anonymous
      Not applicable
      Hi Thomas can you show with a screenshot how do I filter out ?
      • Anonymous's avatar
        Anonymous
        Not applicable

        Anonymous,

        In Query Editor of Power BI Desktop, you can use "Choose Column" option to select the columns that you want to reserve.


        Regards,
        Lydia

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Anonymous,

       

      Can you share a screenshot on how you select and search the object field ?

  • Hi, were you able to find a solution? As a workaround, maybe you can try to test your connection with a 3rd party connector. I've tried windsor.ai, supermetrics and funnel.io. I stayed with Windsor because it is much cheaper so just to let you know other options. In case you wonder, to make the connection first search for the Salesforce connector in the data sources list:

     

     

    After that, just grant access to your Salesforce account using your credentials, then on preview and destination page you will see a preview of your Salesforce fields:

     

     

    There just select the fields you need. It is also compatible with custom fields and custom objects, so you'll be able to export them through windsor.  Finally, just select PBI as your data destination and finally just copy and paste the url on PBI --> Get Data --> Web --> Paste the url. 

     

  • metrica's avatar
    metrica
    Post Prodigy

    Choose Columns in Power Query is a good solution if you want to keep only the required fields without writing M code.

     

    Another option is Power BI Connector for Salesforce. It lets you select the required Salesforce objects and fields while configuring the data source, before importing the data into Power BI.

     

    AppExchange and 30-day free trial: https://appexchange.salesforce.com/appxListingDetail?listingId=31526f0e-abd8-4cb5-bd1a-3bd56b5c0577

     

    Documentation: https://metricasoftware.com/docs/salesforce/

    Support and demo: https://metricasoftware.com/docs/salesforce/contact-support/