<?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>Question Re: Help defining a variable in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600609#M4725762</link>
    <description>&lt;P&gt;Ok. Try adding &lt;STRONG&gt;Mgr ID&lt;/STRONG&gt; to your exisitng &lt;STRONG&gt;Emp ID&lt;/STRONG&gt; merge. Like this...&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2089765-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Noel&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 18:53:51 GMT</pubDate>
    <dc:creator>nscheaffer</dc:creator>
    <dc:date>2022-09-02T18:53:51Z</dc:date>
    <item>
      <title>Help defining a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaq-p/12600601</link>
      <description>&lt;P&gt;Hi guys, so let me start by saying I do not claim to be an expert at business objects so this might be a very simple fix! It might have also been answered somewhere else but I can't find it.&lt;/P&gt;
  &lt;P&gt;Basically, I'm working with HR / People data and in a very simple format, I've got 2 columns of data;&lt;/P&gt;
  &lt;P&gt;- employee ID numbers (used as the merge for a couple of queries)&lt;/P&gt;
  &lt;P&gt;- manager ID number (one of the 'merged in' fields) &lt;/P&gt;
  &lt;P&gt;What I want to do, is to add a column call 'is a manager?' which for each emp ID, would tell me if that employee ID is anywhere in the manager ID column (ie - telling me that they are a line manager).&lt;/P&gt;
  &lt;P&gt;For additional context and to help explain, in excel, you'd do either a =if(isna(vlookup(a2,B:B,1,0)),"No","Yes") or even =if(countif(B:B,A2)&amp;gt;0,"Yes","No").&lt;/P&gt;
  &lt;P&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 15:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaq-p/12600601</guid>
      <dc:creator>boyhardy</dc:creator>
      <dc:date>2022-08-22T15:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600602#M4725755</link>
      <description>&lt;P&gt;Thank you for visiting SAP Community to get answers to your questions.&lt;/P&gt;&lt;P&gt;As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement &amp;amp; additional resources to your reference that can really benefit you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Profile &lt;A href="https://developers.sap.com/tutorials/community-profile.html"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Tips for Questions: &lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Consider to take our Q&amp;amp;A tutorial at: &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope you find this advice useful, and we're happy to have you as part of SAP Community!&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 15:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600602#M4725755</guid>
      <dc:creator>AlexGourdet</dc:creator>
      <dc:date>2022-08-22T15:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600603#M4725756</link>
      <description>&lt;P&gt;You can do this by creating another query of your HR data; could be just &lt;B&gt;Employee ID&lt;/B&gt; and &lt;B&gt;Manager ID&lt;/B&gt;.  Then merge &lt;B&gt;Employee ID&lt;/B&gt; from your primary query to &lt;B&gt;Manager ID&lt;/B&gt; from your second query. Next create a &lt;STRONG&gt;Var Manager Employee ID&lt;/STRONG&gt; variable with a Qualification of "Detail", Associated dimension of "Employee ID", and a formula of Employee ID from your second query.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2085859-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Now you can define a &lt;STRONG&gt;Var Is Manager&lt;/STRONG&gt; variable to determine if an employee is a manager or not.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;=If(IsNull([Var Manager Employee ID]); "No"; "Yes")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2085861-image.png" /&gt;&lt;/P&gt;&lt;P&gt;I pulled this sample data from &lt;A href="https://gist.github.com/kevin336/acbb2271e66c10a5b73aacf82ca82784" target="_blank"&gt;GitHub&lt;/A&gt;. I used &lt;A href="https://www.convertcsv.com/csv-to-sql.htm" target="_blank"&gt;Convert CSV to SQL&lt;/A&gt; to convert it to useable SQL for free-hand SQL queries.&lt;/P&gt;&lt;P&gt;Noel&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 17:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600603#M4725756</guid>
      <dc:creator>nscheaffer</dc:creator>
      <dc:date>2022-08-22T17:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600604#M4725757</link>
      <description>&lt;P&gt;This is amazing, thanks Noel! Although I'm having a bit of trouble. I'm getting 'Yes' for everybody...&lt;/P&gt;&lt;P&gt;I've report filtered down to just my team (I currently have no direct reports so should be a 'no' but my line manager has a few so should be 'yes').&lt;/P&gt;&lt;P&gt;I've pulled in the Var Manager Employee ID into the report too and it looks like it's bringing everyone back. Possibly I've done the merge wrong? Any thoughts?&lt;/P&gt;&lt;P&gt;Thanks Noel,&lt;/P&gt;&lt;P&gt;Lewis &lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 15:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600604#M4725757</guid>
      <dc:creator>boyhardy</dc:creator>
      <dc:date>2022-08-25T15:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600605#M4725758</link>
      <description>&lt;P&gt;Can you provide some screen shots of your queries and data blocking out sensitive or personally identifying information?&lt;/P&gt;&lt;P&gt;BTW, I love using &lt;A href="https://getgreenshot.org/" target="_blank"&gt;Greenshot&lt;/A&gt; for taking screenshots and doing minor editing.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 15:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600605#M4725758</guid>
      <dc:creator>nscheaffer</dc:creator>
      <dc:date>2022-08-25T15:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600606#M4725759</link>
      <description>&lt;P&gt;Thanks again Noel.&lt;/P&gt;&lt;P&gt;So here's my queries, I've got 7 - probably don't need that many but wanted to make sure my base data doesn't filter out if we have any null values. The one I've highlighted here is the manager ID. So we've got employee ID (personal reference: People) and the managers ID (Personal Ref: Manager). Filters on current employees only, current reporting manager and current occupancies (not sure if I needed that but better to have and not need than need and not have!)&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2088512-queries.png" /&gt;&lt;/P&gt;&lt;P&gt;Then this is the variable, which is where I think I may have joined wrong or something; &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2088513-var-manager-employee-id.png" /&gt;&lt;/P&gt;&lt;P&gt;If these are no good, let me know and I'll add more. I'm on an iMac so was trying to avoid spending a whole $2 on Greenshot but can if need be ha! &lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lewis&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 09:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600606#M4725759</guid>
      <dc:creator>boyhardy</dc:creator>
      <dc:date>2022-08-26T09:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600607#M4725760</link>
      <description>&lt;P&gt;Did you merge &lt;STRONG&gt;Personal Reference:People&lt;/STRONG&gt; (Base Data) to &lt;STRONG&gt;Personal Ref:Manager&lt;/STRONG&gt; (Manager Details)? To do so...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Select both objects&lt;/LI&gt;&lt;LI&gt;Right-click&lt;/LI&gt;&lt;LI&gt;Click "Merge"&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2089518-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Then you want to be sure to base your &lt;STRONG&gt;Var Manager Employee ID&lt;/STRONG&gt; variable on the actual merged dimension, &lt;U&gt;not&lt;/U&gt; either of the objects being merged.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2089517-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Does that make a difference?&lt;/P&gt;&lt;P&gt;Noel&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 16:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600607#M4725760</guid>
      <dc:creator>nscheaffer</dc:creator>
      <dc:date>2022-08-26T16:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600608#M4725761</link>
      <description>&lt;P&gt;Hi Noel, sorry I've taken so long to come back to you. I think that merge is where I'm going wrong - I'd merged Employee ID from both queries rather than merging Emp ID to Mgr ID.&lt;/P&gt;&lt;P&gt;However, when I'm trying to merge them, nothing is happening when I right click. Is this because I've got other queries merged to Emp ID as a merged field already? (Ie, I've got a list of base data, then I've got another query for internal Grade so that I don't drop blanks off).&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 08:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600608#M4725761</guid>
      <dc:creator>boyhardy</dc:creator>
      <dc:date>2022-09-01T08:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600609#M4725762</link>
      <description>&lt;P&gt;Ok. Try adding &lt;STRONG&gt;Mgr ID&lt;/STRONG&gt; to your exisitng &lt;STRONG&gt;Emp ID&lt;/STRONG&gt; merge. Like this...&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2089765-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Noel&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 18:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600609#M4725762</guid>
      <dc:creator>nscheaffer</dc:creator>
      <dc:date>2022-09-02T18:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help defining a variable</title>
      <link>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600610#M4725763</link>
      <description>&lt;P&gt;Noel, you are a wizard amongst men, that's done it! Thank you so much for your support &amp;amp; if you ever find yourself in South Yorkshire, I owe you a coffee!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 08:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/help-defining-a-variable/qaa-p/12600610#M4725763</guid>
      <dc:creator>boyhardy</dc:creator>
      <dc:date>2022-09-05T08:40:22Z</dc:date>
    </item>
  </channel>
</rss>

