<?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: Display column values based on object values in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179574#M4555142</link>
    <description>&lt;P&gt;The block level filters are applied on the date fields in the report using variables. For e.g. V_Latest Update Date = If (Update Date = Max(Update Date) In (ID)) Then 1 Else 0. When I remove the block level filters, the suggested formula seems to work fine. Any ideas on how to resolve the issue without removing the filters?&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 05:33:26 GMT</pubDate>
    <dc:creator>former_member672670</dc:creator>
    <dc:date>2020-05-05T05:33:26Z</dc:date>
    <item>
      <title>Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaq-p/12179568</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I want to display values of certain columns based on the value of an object in my Webi report. &lt;/P&gt;
  &lt;P&gt;My columns are - &lt;STRONG&gt;ID&lt;/STRONG&gt; and &lt;STRONG&gt;Name&lt;/STRONG&gt;. My object name is &lt;STRONG&gt;Status&lt;/STRONG&gt; that has values of 'Y' &amp;amp; 'N'. If Status = 'Y', I want to display values for both the ID and Name columns. If Status = 'N', I only want to display values for the ID column, but no values for the Name column i.e. blank. I am not sure how I would incorporate the logic in a report variable with an IF statement to display values for multiple columns. Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 05:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaq-p/12179568</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-05-01T05:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179569#M4555137</link>
      <description>&lt;P&gt;Hi Jeewan,&lt;/P&gt;&lt;P&gt;Use the ID column as is in the table, but for the Name column, create a variable as v_Name with the below formula, and use that variable in the table.&lt;/P&gt;&lt;P&gt;=If([Status]="Y") Then [Name]&lt;BR /&gt;Elseif([Status]="N") Then ""&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Mahboob Mohammed&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 08:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179569#M4555137</guid>
      <dc:creator>mhmohammed</dc:creator>
      <dc:date>2020-05-01T08:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179570#M4555138</link>
      <description>&lt;P&gt;From your description it appears that no variable has to be defined for the ID column, since it is displayed in both "Status" cases.   Just define a variable for "[Name]" and use it in the "Name" column.&lt;/P&gt;&lt;P&gt;vName:   if ([Status] = "Y") then [Name] else ""&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;hope this help you&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 08:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179570#M4555138</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-05-01T08:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179571#M4555139</link>
      <description>&lt;P&gt;I tried the solution, but it only return rows where Status = "Y". There are other rows that have Status of "N" or "", but those are not displayed in the report. There are other block level filters applied on the report, so I'm not sure if that might be an issue.&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 16:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179571#M4555139</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-05-02T16:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179572#M4555140</link>
      <description>&lt;P&gt;The report is only returning rows where Status = "Y" after applying the formula as mentioned in my comment to Mahboob's solution.&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2020 16:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179572#M4555140</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-05-02T16:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179573#M4555141</link>
      <description>&lt;P&gt;Which block level filters are also used?&lt;/P&gt;&lt;P&gt;A screenshot of the table is helpful so that we can give you the correct answer&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 13:31:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179573#M4555141</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-05-04T13:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179574#M4555142</link>
      <description>&lt;P&gt;The block level filters are applied on the date fields in the report using variables. For e.g. V_Latest Update Date = If (Update Date = Max(Update Date) In (ID)) Then 1 Else 0. When I remove the block level filters, the suggested formula seems to work fine. Any ideas on how to resolve the issue without removing the filters?&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 05:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179574#M4555142</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-05-05T05:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179575#M4555143</link>
      <description>&lt;P&gt;A screenshot of the table (with and without filters) is helpful so that we can give you the correct answer&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 07:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179575#M4555143</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-05-05T07:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179576#M4555144</link>
      <description>&lt;P&gt;The block filters are applied on Max(ID), Max(Update Date), and Min(Program Date). The formula uses the same logic for all three variable i.e. If(ID) = Max(ID) In (ID)) Then 1 Else 0. Here's how the table looks like without the new vName variable.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1808506-screen-shot-2020-05-07-at-93244-pm.png" /&gt;&lt;/P&gt;&lt;P&gt;After using the new variable, only the first row is returned where status = "Y". It does not return rows where status = "N" or null. If status = 'N' or Null, I want to display blank values for all the columns except the ID column.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 02:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179576#M4555144</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-05-08T02:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179577#M4555145</link>
      <description>&lt;P&gt;Your original question was about the "&lt;STRONG&gt;Name&lt;/STRONG&gt;" column, not for&lt;STRONG&gt; all &lt;/STRONG&gt;columns except ID, as you are mentioning now. (This makes a big difference, especially if you use the formula in the other column).&lt;/P&gt;&lt;P&gt;The displayed result is therefore normal. If you set the "update date" and / or the "program date" to "empty", you will not get the expected result for "max" and "min".&lt;/P&gt;&lt;P&gt;To solve it, use&lt;STRONG&gt; NoFilter() &lt;/STRONG&gt;in the formula Max(Update Date) and Min(Program Date).&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I hope this gives you an idea how to solve it.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 09:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179577#M4555145</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-05-08T09:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179578#M4555146</link>
      <description>&lt;P&gt;Thanks. I was able to apply the formula to the columns after using NoFilter() on the Max(Update Date) and Min(Program Date). However, if I add another block filter based on a dimension object (&lt;STRONG&gt;Valid ID = 'Y'&lt;/STRONG&gt;), the issue seems to come back. Looks like you can only apply NoFilter() to measure objects. &lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 06:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179578#M4555146</guid>
      <dc:creator>former_member672670</dc:creator>
      <dc:date>2020-05-10T06:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Display column values based on object values</title>
      <link>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179579#M4555147</link>
      <description>&lt;P&gt;see NoFilter help:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Description&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ignores filters when calculating a value. NoFilter is used with measure objects. It does not apply to dimensions.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 07:48:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/display-column-values-based-on-object-values/qaa-p/12179579#M4555147</guid>
      <dc:creator>ayman_salem</dc:creator>
      <dc:date>2020-05-10T07:48:33Z</dc:date>
    </item>
  </channel>
</rss>

