<?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 Re: Manipulating column values in SAS in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595265#M13170</link>
    <description>&lt;P&gt;Can you explain the type of report you are trying to produce? A screenshot of made-up data would be fine. The reason is to confirm if the way you want to change the data is the best for your report.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 06:16:40 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-10-10T06:16:40Z</dc:date>
    <item>
      <title>Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595238#M13164</link>
      <description>&lt;P&gt;I have a category that has 2 values. I know that i am able to duplicate the category, however would like to know whether i am able to permanantly remove a value from the category.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 02:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595238#M13164</guid>
      <dc:creator>DandarahZ</dc:creator>
      <dc:date>2019-10-10T02:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595260#M13167</link>
      <description>&lt;P&gt;What does "remove a value from a category" mean? Change a value in a column from non-missing to missing? Remove all rows that match a particular value? Or something else? Posting an example of what you want would be helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 05:58:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595260#M13167</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-10-10T05:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595263#M13169</link>
      <description>&lt;P&gt;Hello. I would like to apologize for being unclear with my message,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an occupancy column with 2 values, 0, 1. I would like to know if there is a way to separate the values into a column each eg: Unoccupied = 0&lt;/P&gt;&lt;P&gt;Occupied =1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using substrings, filters and creating new categories to manipulate the 2 values but to no avail. At the same time, a side question, is changing the datatype of category to measure possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 06:07:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595263#M13169</guid>
      <dc:creator>DandarahZ</dc:creator>
      <dc:date>2019-10-10T06:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595265#M13170</link>
      <description>&lt;P&gt;Can you explain the type of report you are trying to produce? A screenshot of made-up data would be fine. The reason is to confirm if the way you want to change the data is the best for your report.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 06:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595265#M13170</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-10-10T06:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595274#M13172</link>
      <description>&lt;P&gt;Hello, i thank you for the reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am required to create some dashboards for the client. The dashboards will give an over view about room usage :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33038iB61C54B84A8E6D53/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture1.JPG" alt="Picture1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I inted to separate the occupance data into 2 different variables, occupied and non occupied. At the same time, i would like to find a way on how to convert the category datatype to measure to enable the be variables to be placed in the measure (y) axis of the graph above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture2.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33039iE26FCCFFC20E219E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture2.JPG" alt="Picture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for any troubles caused&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 06:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595274#M13172</guid>
      <dc:creator>DandarahZ</dc:creator>
      <dc:date>2019-10-10T06:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595300#M13174</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;You can create two new calculated measures:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;occupied:&lt;/P&gt;
&lt;P&gt;=============&lt;/P&gt;
&lt;P&gt;IF occupancy = '1' then&amp;nbsp; return 1&lt;/P&gt;
&lt;P&gt;ELSE 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;nonoccupied:&lt;/P&gt;
&lt;P&gt;=============&lt;/P&gt;
&lt;P&gt;IF occupancy = '0' then&amp;nbsp; return 1&lt;/P&gt;
&lt;P&gt;ELSE 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep default aggregation (SUM).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 09:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595300#M13174</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-10-10T09:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595609#M13181</link>
      <description>&lt;P&gt;Hello and thank you for the reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to create calculated measures, the only option was for me to create a new aggregated measure. When brought to the formula screen, i dragged the boolean IF/ELSE statement to the workspace and dragged the category in. After it got dragged in, i got thrown an errror saying wrong type assigned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These 2 screenshots are the options that are displayed, as i mentioned, there is no option to create aggregated measures&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.JPG" style="width: 301px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33060i954DAB2262D835E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.JPG" alt="Capture1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 253px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33061i0BF7DB61996BFA63/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I cant create calculated measures, what should be my next step? Do i have to ensure that the data thatt gets loaded into VA must be of the proper values? Does VA allow flexible type conversion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 02:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595609#M13181</guid>
      <dc:creator>DandarahZ</dc:creator>
      <dc:date>2019-10-11T02:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595656#M13183</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Sorry if I mislead you, I only have the swedish version....:)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should select "New Calculated Item..." and create two new "items", one for occupied and one for nonOccupied as a showed earlier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go into "text edit" (or what it's called in the english versoin....:)) and copy/paste the formulas I gave you, they might need some fine-tuning to fit your exact data &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 07:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/595656#M13183</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-10-11T07:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596181#M13190</link>
      <description>Hello Mr Fredrik, thank you for your reply. I have a follow-up question. Can the same method be used if the data type is now a measure as compared to it previously being a category type?</description>
      <pubDate>Mon, 14 Oct 2019 08:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596181#M13190</guid>
      <dc:creator>DandarahZ</dc:creator>
      <dc:date>2019-10-14T08:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596199#M13191</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;Sorry, but I don't understand your question, can you add some example of what yo want to do?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 10:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596199#M13191</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-10-14T10:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596401#M13198</link>
      <description>&lt;P&gt;I apologize for the vagueness of the question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As with the previous question, i want to separate the values (0,1) into 2 different categories. However, now instead of occupancy being a category type, it is now a measure type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will separating the values 0 and 1 be possible for occupancy with the data type of measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again i apologize for any troubles caused.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 03:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596401#M13198</guid>
      <dc:creator>DandarahZ</dc:creator>
      <dc:date>2019-10-15T03:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596449#M13200</link>
      <description>&lt;P&gt;No probz &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can't create rows in VA, so if you have one row containing the measures you can't create two dimension values on separate rows, which i guess is what you want to do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create two (or more) dimension values on the same row, but I don't know if it is usable in your case...&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 08:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596449#M13200</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-10-15T08:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596717#M13212</link>
      <description>&lt;P&gt;Hello Sir, i fail to understand what you meant in your past reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope the information i have provided can help you understand my situation better,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I intend to make a butterfly graph&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture3.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33155iD85C80E9B1CCF540/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture3.JPG" alt="Picture3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the graph above, i require 1 category and 2 measure data types. I already have the category data prepared. I am however, having problems with the measure data. Within the occupancy measure data, there are 2 values as shown below. (Im am using category data for show/reference)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture4.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33156i521C0881E1C429AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture4.JPG" alt="Picture4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is that since occupancy is classified as a measure data type how do i separate the values 0,1 and the data into 2 different varibables. (below is a screen short of the intended outcome)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture5.JPG" style="width: 135px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33157iA80235797D8BC5AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picture5.JPG" alt="Picture5.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As mentioned not occupies will only have the zeros&lt;/P&gt;&lt;P&gt;and occupied will only have ones&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for the repeated question Mr Fredrick. I appreciate any and all the help that you have given me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 01:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596717#M13212</guid>
      <dc:creator>DandarahZ</dc:creator>
      <dc:date>2019-10-16T01:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulating column values in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596837#M13214</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I think you can use my earlier suggestion, if I understand you correct &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can descide if you want to have 0/1 in both variables by changing the expression.&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"You can create two new calculated measures:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;occupied:&lt;/P&gt;
&lt;P&gt;=============&lt;/P&gt;
&lt;P&gt;IF occupancy = '1' then&amp;nbsp; return 1&lt;/P&gt;
&lt;P&gt;ELSE 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;nonoccupied:&lt;/P&gt;
&lt;P&gt;=============&lt;/P&gt;
&lt;P&gt;IF occupancy = '0' then&amp;nbsp; return 1&lt;/P&gt;
&lt;P&gt;ELSE 0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep default aggregation (SUM)."&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 11:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Manipulating-column-values-in-SAS/m-p/596837#M13214</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-10-16T11:53:11Z</dc:date>
    </item>
  </channel>
</rss>

