<?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: Calculated dimensions based on several objects in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/calculated-dimensions-based-on-several-objects/qaa-p/13857118#M4882360</link>
    <description>&lt;P&gt;Hi, Sofie.&lt;/P&gt;&lt;P&gt;With a little creativity, this is possible in Webi.&lt;/P&gt;&lt;P&gt;If you needed only a simple table (no charts), then you could do a crosstab with simple text labels and variables for each of the counts in the body. The structure would look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LGCA_1-1725643133788.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/163423i592D57A58CB3CEC6/image-size/medium?v=v2&amp;amp;px=400" alt="LGCA_1-1725643133788.png" title="LGCA_1-1725643133788.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the first two formulas would be (with the others following the same model):&lt;BR /&gt;[Scanned Bracelet - Yes]=Sum(If [Scanned bracelet] = "1" Then 1)&lt;BR /&gt;[Scanned Bracelet - No]=Sum(If [Scanned bracelet] = "0" Then 1)&lt;/P&gt;&lt;P&gt;But because you want charts in the report, you must define more variables and create three crosstabs, which you can juxtapose in the report to make them look like a single crosstab (by hiding the top row of the lower crosstabs). Their structures would look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LGCA_2-1725643330782.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/163424i78541A20389D6967/image-size/medium?v=v2&amp;amp;px=400" alt="LGCA_2-1725643330782.png" title="LGCA_2-1725643330782.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the first few formulas would be:&lt;BR /&gt;[vScanned Bracelet]="Scanned Bracelet"&lt;BR /&gt;[vScanned Bracelet YN]=If [Scanned bracelet] = "1" Then "Yes" Else "No"&lt;BR /&gt;[Count ID]=Count([Ordinations-ID])&lt;/P&gt;&lt;P&gt;You then copy each of the blocks, turn them into column charts, and place them in the report, customizing the display of axes and legends to get to your final display:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LGCA_3-1725643760917.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/163425i026519D42A815015/image-size/medium?v=v2&amp;amp;px=400" alt="LGCA_3-1725643760917.png" title="LGCA_3-1725643760917.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;BR /&gt;Luis&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 17:33:16 GMT</pubDate>
    <dc:creator>LGCA</dc:creator>
    <dc:date>2024-09-06T17:33:16Z</dc:date>
    <item>
      <title>Calculated dimensions based on several objects</title>
      <link>https://community.sap.com/t5/technology-q-a/calculated-dimensions-based-on-several-objects/qaq-p/13852494</link>
      <description>&lt;P&gt;I have a report with OrderIDs and related boolean dimensions for each order. I want to create a calculated dimension counting the boolean results for each dimension/object. Is this even possible in webi or do we need to modify the Universe?&lt;BR /&gt;I have this:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SofieH_0-1725353566738.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/161414iB75C67C03CAF2C37/image-size/medium?v=v2&amp;amp;px=400" alt="SofieH_0-1725353566738.png" title="SofieH_0-1725353566738.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;and I want to calculate it like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SofieH_1-1725353566653.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/161415i8F41585A762AF6E7/image-size/medium?v=v2&amp;amp;px=400" alt="SofieH_1-1725353566653.png" title="SofieH_1-1725353566653.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Because the end users want it to look like this in the report:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SofieH_2-1725353566771.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/161413iC4D42BA8FD0954FE/image-size/medium?v=v2&amp;amp;px=400" alt="SofieH_2-1725353566771.png" title="SofieH_2-1725353566771.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Any suggestions how to do this?&lt;BR /&gt;Regards,&lt;BR /&gt;Sofie H&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 08:55:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/calculated-dimensions-based-on-several-objects/qaq-p/13852494</guid>
      <dc:creator>SofieH</dc:creator>
      <dc:date>2024-09-03T08:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimensions based on several objects</title>
      <link>https://community.sap.com/t5/technology-q-a/calculated-dimensions-based-on-several-objects/qaa-p/13853810#M4881820</link>
      <description>Really?! Is this simple logical dilemma not possible in webi?</description>
      <pubDate>Wed, 04 Sep 2024 07:08:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/calculated-dimensions-based-on-several-objects/qaa-p/13853810#M4881820</guid>
      <dc:creator>SofieH</dc:creator>
      <dc:date>2024-09-04T07:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimensions based on several objects</title>
      <link>https://community.sap.com/t5/technology-q-a/calculated-dimensions-based-on-several-objects/qaa-p/13857118#M4882360</link>
      <description>&lt;P&gt;Hi, Sofie.&lt;/P&gt;&lt;P&gt;With a little creativity, this is possible in Webi.&lt;/P&gt;&lt;P&gt;If you needed only a simple table (no charts), then you could do a crosstab with simple text labels and variables for each of the counts in the body. The structure would look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LGCA_1-1725643133788.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/163423i592D57A58CB3CEC6/image-size/medium?v=v2&amp;amp;px=400" alt="LGCA_1-1725643133788.png" title="LGCA_1-1725643133788.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the first two formulas would be (with the others following the same model):&lt;BR /&gt;[Scanned Bracelet - Yes]=Sum(If [Scanned bracelet] = "1" Then 1)&lt;BR /&gt;[Scanned Bracelet - No]=Sum(If [Scanned bracelet] = "0" Then 1)&lt;/P&gt;&lt;P&gt;But because you want charts in the report, you must define more variables and create three crosstabs, which you can juxtapose in the report to make them look like a single crosstab (by hiding the top row of the lower crosstabs). Their structures would look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LGCA_2-1725643330782.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/163424i78541A20389D6967/image-size/medium?v=v2&amp;amp;px=400" alt="LGCA_2-1725643330782.png" title="LGCA_2-1725643330782.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the first few formulas would be:&lt;BR /&gt;[vScanned Bracelet]="Scanned Bracelet"&lt;BR /&gt;[vScanned Bracelet YN]=If [Scanned bracelet] = "1" Then "Yes" Else "No"&lt;BR /&gt;[Count ID]=Count([Ordinations-ID])&lt;/P&gt;&lt;P&gt;You then copy each of the blocks, turn them into column charts, and place them in the report, customizing the display of axes and legends to get to your final display:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LGCA_3-1725643760917.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/163425i026519D42A815015/image-size/medium?v=v2&amp;amp;px=400" alt="LGCA_3-1725643760917.png" title="LGCA_3-1725643760917.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;BR /&gt;Luis&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 17:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/calculated-dimensions-based-on-several-objects/qaa-p/13857118#M4882360</guid>
      <dc:creator>LGCA</dc:creator>
      <dc:date>2024-09-06T17:33:16Z</dc:date>
    </item>
  </channel>
</rss>

