<?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: Insight - how to get months and new column after crosstab in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Insight-how-to-get-months-and-new-column-after-crosstab/m-p/138070#M25078</link>
    <description>&lt;P&gt;I haven't used _last_of_month (Thanks Brian!), but one isssue you will encountere here is that daily data will only be retained for 1 year.&amp;nbsp; If I'm reading your question correctly, you actually need 13 months.&amp;nbsp; Oh, also, make sure you're using the daily stats, not the monthly stats, since the monthly ones will aways be the first measurement of each month.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 14:43:09 GMT</pubDate>
    <dc:creator>moechnig</dc:creator>
    <dc:date>2018-02-13T14:43:09Z</dc:date>
    <item>
      <title>Insight - how to get months and new column after crosstab</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Insight-how-to-get-months-and-new-column-after-crosstab/m-p/138056#M25067</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on a report in which I have to show capacity utilization from Jan-17 to Jan-18 but I am facing some challenges. Below are the queries:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. How should I get 13 months data based on last day of the month? I used [Full Date] between _add_months(current_date,-13) and _add_months(current_date,-1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;But that show data captured at first of each month, where as customer need data consumed at the end of month.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I build a cross tab to populate data from Jan-17 to Jan18. But there is requirement to add 2 more columns at end which show difference between 13 months in terms of capacity and utilization %. I can calculate it from regular data items but how can I pick specific months from cross tab which generate data at runtime and do calculation based on that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Internal Volume DM does not have any data item of total capacity, so how can I calculate utilization %. Because allocated and consumed capacity in that DM both show same values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:02:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Insight-how-to-get-months-and-new-column-after-crosstab/m-p/138056#M25067</guid>
      <dc:creator>sunil-yadav</dc:creator>
      <dc:date>2025-06-04T14:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Insight - how to get months and new column after crosstab</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Insight-how-to-get-months-and-new-column-after-crosstab/m-p/138065#M25074</link>
      <description>&lt;P&gt;Hi Sunil,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For question 1, cognos has a _last_of_month function, so for instance you can pick out the last day of the previous month with _last_of_month(_add_months(current_date,-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For number 2, I've never worked out a way to get cognos&amp;nbsp;to calculate a difference in cross tabs - you can do average, total, etc, but not difference as near as I can tell. Maybe create a separate data item in the query and then display that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For number 3: allocated capacity = consumed capacity if the internal volume is NOT thin provisioned. For thin provisioned volumes, those two numbers should not be equal and you can divide consumed by allocated to get a % full number. For thick provisioned internal volumes, you can look at the difference between used capacity and allocated to see the amount of 'trapped' capacity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:48:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Insight-how-to-get-months-and-new-column-after-crosstab/m-p/138065#M25074</guid>
      <dc:creator>hoffman</dc:creator>
      <dc:date>2018-02-13T12:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Insight - how to get months and new column after crosstab</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Insight-how-to-get-months-and-new-column-after-crosstab/m-p/138067#M25075</link>
      <description>&lt;P&gt;Hi Hoffman,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for quick response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. I have tried _last_of_month function but it returned same result i.e. showing first of every month. Not sure if I wrote syntax wrong or what.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;[Full Date] between _last_of_month(_add_months(current_date,-14)) and _last_of_month(_add_months(current_date,-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. I know adding data item is the way. Even if I create a data item in query explorer, I cannot append that in page after crosstab. Getting error "This object can only be inserted into a data container". Do I have to create a new block for that? If yes, how I make sure that calculation done in that data item relates to specific volume and for which month?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Used capacity is showing 0GB for all internal volumes, where as customer is saying that all volumes are in use. And what's the difference between used and data used capacity?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:59:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Insight-how-to-get-months-and-new-column-after-crosstab/m-p/138067#M25075</guid>
      <dc:creator>sunil-yadav</dc:creator>
      <dc:date>2018-02-13T13:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Insight - how to get months and new column after crosstab</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Insight-how-to-get-months-and-new-column-after-crosstab/m-p/138070#M25078</link>
      <description>&lt;P&gt;I haven't used _last_of_month (Thanks Brian!), but one isssue you will encountere here is that daily data will only be retained for 1 year.&amp;nbsp; If I'm reading your question correctly, you actually need 13 months.&amp;nbsp; Oh, also, make sure you're using the daily stats, not the monthly stats, since the monthly ones will aways be the first measurement of each month.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:43:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Insight-how-to-get-months-and-new-column-after-crosstab/m-p/138070#M25078</guid>
      <dc:creator>moechnig</dc:creator>
      <dc:date>2018-02-13T14:43:09Z</dc:date>
    </item>
  </channel>
</rss>

