<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Importing data through salesforce connector in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Importing-data-through-salesforce-connector/m-p/666209#M242419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to import data from Salesforce using the Salesforce connector. The data is importing fine although I have one field that I need to filter. I am importing sales data for sales opportunities. Each record is an opportunity and these opportunities have a percentage complete, amount, an ID for the company they belong to and a company name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order for my graph to work I need to be able to Sum all of the pipeline sales for each company and then display them on a bar stacked above each other. I was able to get this to work fine with data imported from excel with the sales sorted in to percentage columns. I then used flags to sort it so that I could have a pipeline, target sales and sales to date bar on the graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to import my data from Salesforce and depending on the percentage, put the amount in to a column under the percentage complete. I have tried to do this in he load script although I am having problems as Salesforce uses SOQL which I am not all that familiar with and seems very limited compared with regular SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant make changes to how my data is presented at the source as it is a complex salesforce site, It would be useful if I could just import a report instead as I could sort the data on salesforce however as far as I am aware this is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14103583634833836" jivemacro_uid="_14103583634833836"&gt;
&lt;P&gt;CUSTOM CONNECT TO: *******&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Account:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Name,&lt;/P&gt;
&lt;P&gt;Id as AccountId&lt;/P&gt;
&lt;P&gt;SQL SELECT Name, Id&lt;/P&gt;
&lt;P&gt;FROM Account;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Opportunity:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Probability,&lt;/P&gt;
&lt;P&gt;AccountId,&lt;/P&gt;
&lt;P&gt;Amount&lt;/P&gt;
&lt;P&gt;SQL SELECT Probability, AccountId, Amount&lt;/P&gt;
&lt;P&gt;FROM Opportunity&lt;/P&gt;
&lt;P&gt;WHERE Probability != 0 and Amount &amp;gt; 0 and Amount != NULL and Probability != NULL;&lt;/P&gt;




&lt;/PRE&gt;&lt;P&gt;Notice above that I am trying to remove Null values too as I see to get lots when importing. This validation does not seem to remove them. Apologies if there are errors in the code I had to type it out as it would not copy and paste in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Sep 2014 09:53:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-10T09:53:42Z</dc:date>
    <item>
      <title>Importing data through salesforce connector</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-data-through-salesforce-connector/m-p/666209#M242419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been trying to import data from Salesforce using the Salesforce connector. The data is importing fine although I have one field that I need to filter. I am importing sales data for sales opportunities. Each record is an opportunity and these opportunities have a percentage complete, amount, an ID for the company they belong to and a company name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order for my graph to work I need to be able to Sum all of the pipeline sales for each company and then display them on a bar stacked above each other. I was able to get this to work fine with data imported from excel with the sales sorted in to percentage columns. I then used flags to sort it so that I could have a pipeline, target sales and sales to date bar on the graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to import my data from Salesforce and depending on the percentage, put the amount in to a column under the percentage complete. I have tried to do this in he load script although I am having problems as Salesforce uses SOQL which I am not all that familiar with and seems very limited compared with regular SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant make changes to how my data is presented at the source as it is a complex salesforce site, It would be useful if I could just import a report instead as I could sort the data on salesforce however as far as I am aware this is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14103583634833836" jivemacro_uid="_14103583634833836"&gt;
&lt;P&gt;CUSTOM CONNECT TO: *******&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Account:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Name,&lt;/P&gt;
&lt;P&gt;Id as AccountId&lt;/P&gt;
&lt;P&gt;SQL SELECT Name, Id&lt;/P&gt;
&lt;P&gt;FROM Account;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Opportunity:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Probability,&lt;/P&gt;
&lt;P&gt;AccountId,&lt;/P&gt;
&lt;P&gt;Amount&lt;/P&gt;
&lt;P&gt;SQL SELECT Probability, AccountId, Amount&lt;/P&gt;
&lt;P&gt;FROM Opportunity&lt;/P&gt;
&lt;P&gt;WHERE Probability != 0 and Amount &amp;gt; 0 and Amount != NULL and Probability != NULL;&lt;/P&gt;




&lt;/PRE&gt;&lt;P&gt;Notice above that I am trying to remove Null values too as I see to get lots when importing. This validation does not seem to remove them. Apologies if there are errors in the code I had to type it out as it would not copy and paste in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 09:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-data-through-salesforce-connector/m-p/666209#M242419</guid>
      <dc:creator />
      <dc:date>2014-09-10T09:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Importing data through salesforce connector</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-data-through-salesforce-connector/m-p/666210#M242420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right I've figured out how to sort the values in to pipeline sales (less than 100%) and complete sales (100%) by using an if statement on load. I have then sorted all my pipeline sales in to percentages on the graph by using a validation in the chart expression. The only problem I have now is sorting the bars on the bar chart. I am using stacked bars. I want to have different bars for pipeline sales, complete sales and target sales sorted by the dimension Company name. I have all of the following in my chart but they have all stacked on top of each other. In the past I have sorted this by using a chart dimension called Flag and putting a reference to the Flag dimension in the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot get this to work as some of the data I need to split apart comes from the same table. I cannot reference Flag twice in the same table as I get an error on load. I have tried splitting the data in to different loads but SOQL doesn't seem to like loading from the same table twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way to split stacked bars in a bar chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-data-through-salesforce-connector/m-p/666210#M242420</guid>
      <dc:creator />
      <dc:date>2014-09-15T11:11:22Z</dc:date>
    </item>
  </channel>
</rss>

