Display last 12 months data in column chart
Hi All,
I have one dashbord requirement in list box i have (example:): "oct-11" i need to display previous 12 mnth data in column chart anybody help in excel formula how to display last 12 mnths based on list box selection.
example: if i select oct-11 from list box i need to display in chart like
nov-10 dec-10 nov-10...................................oct-11
please provide how to write in logic in excel
Hi Shankar,
Try this formula in excel : DATE(YEAR(A1),MONTH(A1)-1,DAY(A1))
A1 will be your cell which is the destination of your List box. & then drag it till 12 months.
If you are not having day from your list box then manually enter 1 in any cell and map that cell in place of A1 for day.
HTH.
Neeraj..
Similar Messages
-
Hi All,
I have below requirement.
i have data in my table as below.
Month Name
Revenue
Jan-2013
500
Feb-2013
300
Mar-2013
null
April-2013
null
May-2013
900
Jun-2013
null
Jul-2013
450
Aug-2013
null
requirement is to display last month revenue where ever revenue is null
ex: For march revenue should be displayed as 300 and April too 300, for Jun 900 and july 450 should be displayed.
how can i achieve this.Question: Revenue is number type right? how come you are getting NULL it suppose to be 0.
use ifnull and set to 0 just in case your data is right, and then try the below
case when Revenue=0 then MSUM (Revenue, 2) else Revenue end
I'm not sure how it works when 2 NULLs like march and april, to test this I dont have similar data.
give me updates -
I downloaded Mountain Lion in my i have macbook pro retina display last month. but I don't get airplay the option on my macbook. I went to display preferences, but the airplay is not available. What is the next step?
You also need:
Apple TV (2nd or 3rd generation) with software update v5.0 or later. -
Routine to capture last month data
Hello Frnds,
For a Dataload from the datasource Actual Cost Component Split(0CO_PC_ACT_10), we want to capture last month data ,
we are planning to write a routine in infopackage level,
using the option 6-ABAP routine, to select the last month data ,
we have the time characteristics 0FISCPER, At present we managing the load by manually changing the selection for last month every time ,
It would be a great help if anybody can show a sample code to select last month data,
Thanks,
satyIf 'last month data' for you is equivalent to 'actual month data', post this code (corrected) into your IPACK dynamic selection:
DATA: zyear type /BI0/OIFISCYEAR,
______zperiod type /BI0/OIFISCPER3,
______zfiscper type /BI0/OIFISCPER.
CLEAR: zyear,
_______Zperiod,
_______zfiscper.
MOVE sy-datum+0(4) to zyear.
MOVE sy-datum+4(2) to zperiod.
concatenate zyear zperiod into zfiscper.
l_t_range-iobjnm = '0FISCPER'.
l_t_range-fieldname = '/BI0/FISCPER'.
l_t_range-sign = 'I'.
l_t_range-option = 'EQ'.
l_t_range-low = zfiscper.
l_t_range-high = zfiscper.
APPEND l_t_range.
Message was edited by: Claudio Caforio -
Get the yesterday or last month data
Hi ,
I've need a small help .
This is the scenario.
If today is 1st feb. so I need to get last month data.
if today is 30 th i need to get the current month data before 30 I mean 29 days data.
I have to do it automatically i mean i need to write case statement in my existing query by using sysdate and i have to get it .
pls help me out . Your help is greatly appreciated.
Thanks & Regards,
madhav.Haven't tested it, but you could try something like
This gives you last months data if executed on the first day of the month otherwise this months data until the day before today
select *
from my_table
where my_date >= add_months(trunc(sysdate, 'MM'), sign(trunc(sysdate)-trunc(sysdate, 'MM'))-1)
and my_date <trunc(sysdate)After I read your posting again, I guess you wanted something else
This query now gives you last months data if executed on the first day of the month otherwise the data of the day before today
select *
from my_table
where my_date >= (case when trunc(sysdate) = trunc(sysdate, 'MM') then add_months(trunc(sysdate, 'MM'), -1) else trunc(sysdate-1) end)
and my_date <trunc(sysdate)Message was edited by:
Jens Petersen -
Need formula in my subreport to get last month date - CR XIr2
Post Author: olesco
CA Forum: Formula
I need to pass the value (#of units) from the subreport to the main report u2013 I know how to do that but my problem is I donu2019t know what formula should I put in my subreport to get last month date.
Both main report and subreport have a date parameter (Field link - {?DatePrompt}. What I need is when I fill in the current month date to the main report the subreport should process the last moth date.
Main report u2013 Date Range (2007-10-1) (2007-10-31) - result #of units = 22
u201CRecord Selection Formula Editor
DateRecd = {@DatePrompt} [i.e. current month]
Subreport u2013 should have data from last month - result #of units = 25
u201CRecord Selection Formula Editor
DateRecd < {@DatePrompt} [last month] ??????
There are 22 3 units this month and 25 units last month.
Any help is greatly appreciated.Post Author: SKodidine
CA Forum: Formula
DateRecd in dateadd('m',-1,minimum({@DatePrompt})) to dateadd('m',-1,maximum({@DatePrompt})) -
How to display Last month close as the footer
Hi all,
We are in the process of building a report that will have a footer that says "Last month Actuals loaded into the database: September FY13"
I can do this by adding a data column (then hide it), change the period to CurMth subvar, which we update every month after loading the latest actuals then use the following function:
Last month Actuals loaded into the database: <<MemberName("Grid1", A,"Period")>>
This would work if the Period dimension was already in the Column but it is not. If I go with this option then we would have to change the layout of all our reports.
Is there an easier way? Maybe a function that calls a value of a SubVar?
Thanks,
Mehmet
p.s. We are on 11.1.2.2.300. This is an Essbase connectionMehmet,
I don't think there is a function to get the value of subvar. Another option you can try is to add another grid which can be used for all these activities. I do that most of the times
You can save that one and link all reports to that one, so in case if you have to add more then change that at one place and all reports will start picking the change.
Regards
Celvin -
How to display labels ( vertically) in a column Chart
Hi,
As per my requirement I want to show labels inside the column charts & they must be aligned verically
say ABC is id i want display i want A
B
C
I have tried with Column Charts properties like showvertically =" true" & extendLabelToEnd="true".But i am not getting them vertically aligned .Is that something else also must be done.
Regards
Kalavati singh
[email protected]Take a look at this blog: http://gerardnico.com/wiki/dat/obiee/presentation_variable
Try it out by providing a default format.
Thanks,
BIPuser -
Historical data and Column Chart
Hello
I am trying to retrive historical data from the repository and show it as a column chart through flex UI Implementation.
My Metric is defined as below and it has two columns defined as KEY columns
<Metric NAME="EnergyConsumptionCost" TYPE="TABLE" USAGE_TYPE="VIEW_COLLECT" FORCE_CACHE="TRUE">
<Display>
<Label NLSID="flex_energyCosumptionCost">Energy Consumption Cost Metric</Label>
</Display>
<TableDescriptor>
<ColumnDescriptor NAME="DeviceID" TYPE="STRING" IS_KEY="FALSE">
<Display>
<Label NLSID="flex_DeviceID">Device ID</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="DeviceName" TYPE="STRING" IS_KEY="TRUE">
<Display>
<Label NLSID="flex_deviceName">Device Name</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="EnergyCost" TYPE="NUMBER" IS_KEY="FALSE">
<Display>
<Label NLSID="flex_EnergyCost">Energy Cost</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="CurrencySymbol" TYPE="STRING" IS_KEY="FALSE">
<Display>
<Label NLSID="flex_Currency">Currency</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="EnergyConsumption" TYPE="NUMBER" IS_KEY="FALSE">
<Display>
<Label NLSID="flex_energyConsumption">Energy Consumption</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="Unit" TYPE="STRING" IS_KEY="FALSE">
<Display>
<Label NLSID="flex_Unit">Unit</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="PerUnitRate" TYPE="NUMBER" IS_KEY="FALSE">
<Display>
<Label NLSID="flex_PerUnitRate">Unit Rate</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="DateCollected" TYPE="STRING" IS_KEY="TRUE">
<Display>
<Label NLSID="flex_DateCollected">Metric Collection Date</Label>
</Display>
</ColumnDescriptor>
<ColumnDescriptor NAME="ExtraDetails" TYPE="STRING" IS_KEY="FALSE">
<Display>
<Label NLSID="flex_extraDetails">Extra Details</Label>
</Display>
</ColumnDescriptor>
</TableDescriptor>
<QueryDescriptor FETCHLET_ID="OSLineToken">
<Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
<Property NAME="classpath" SCOPE="GLOBAL">$CLASSPATH:%scriptsDir%/EnergyDashboardEjbBeanService-Client.jar</Property>
<Property NAME="command" SCOPE="GLOBAL">java -cp %classpath% com.avocent.trellis.oem.plugin.energy.insight.proxy.EnergyDashboardEjbBeanServicePortClient GraphRequest %DeviceID% %StartDate% %EndDate% </Property>
<Property NAME="startsWith" SCOPE="GLOBAL">ext_result=</Property>
<Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
</QueryDescriptor>
</Metric>
I am implement the UI now using flex programming and below is the code of my page contoller class
public class emersontrellisflexHomePageController extends ActivityController
private var page:emersontrellisflexHomePage;
[Bindable]
public var metricDataArrayCollection:ArrayCollection;
public function emersontrellisflexHomePageController()
override public function init(pg:IActivity):void
super.init(pg);
page = pg as emersontrellisflexHomePage;
// get EnergyConsumptionCost metric to get energy consumption cost information
var procMetric:Metric = ApplicationContext.getTargetContext().getMetric("EnergyConsumptionCost");
var procSelector:MetricSelector = procMetric.getSelector(['DeviceID', 'DeviceName','EnergyCost','CurrencySymbol','EnergyConsumption','Unit','PerUnitRate','DateCollected','ExtraDetails']);
procSelector.getData(energyConsumptionCostHandler, MetricCollectionTimePeriod.CURRENT, page.getBatchRequest());
// structure of the data is as follows:
// MetricResultSet -- contains an Array (results) of all the datapoints. If the
// time period is LAST_* then this will be multiple datapoints for each timestamp.
// results[] -- each row in results is a TimestampMetricData datapoint.
// TimestampMetricData -- a datapoint that includes a timestamp and then a table (data) of
// data for all keys included in the sample. If the metric does not have any keys
// then the table will only have a single row.
// data -- the data table, each row is a KeyMetricData object
// KeyMetricData -- the data row, it includes a MetricKeyValue (metricKey) that
// identifies the key associated with that row (if there is one). All other
// data is available via a direct reference by column name, e.g. data[n]['ColumnId']
public function energyConsumptionCostHandler(procResult:MetricResultSet, fault:ServiceFault):void
if(fault != null)
MpLog.logError(fault, "Get Processes");
return;
if(procResult!=null)
var dataLength:int = 0;
var dp:TimestampMetricData = procResult.results[0];
if(dp != null)
dataLength = dp.data.length;
var metricData:EcecObject ;
var data:KeyMetricData;
metricDataArrayCollection= new ArrayCollection();
for(var i:int=0; i<dataLength; i++)
data= dp.data;
Alert.show("Data["+i+"]="+dp.data[i].toString());
metricData= new EcecObject();
metricData.deviceID=dp.data[i]['DeviceID'];
metricData.deviceName=dp.data[i]['DeviceName'];
metricData.energyCost=dp.data[i]['EnergyCost'];
metricData.currencySymbol=dp.data[i]['CurrencySymbol'];
metricData.energyConsumption=dp.data[i]['EnergyConsumption'];
metricData.unit=dp.data[i]['Unit'];
metricData.perUnitRate=dp.data[i]['PerUnitRate'];
metricData.dateCollected=dp.data[i]['DateCollected'];
metricData.extraDetails=dp.data[i]['ExtraDetails'];
metricDataArrayCollection.addItem(metricData);
page.setModel("metricDataCollection",metricDataArrayCollection);
} //End of function energyConsumptionCostHandler
} //End of class
In the handler code I am populating the ArrayCollection with the objects of class "EcecObject" which is defined by me and looks as below
package mpcui
[Bindable]
public class EcecObject
public function EcecObject()
public var deviceID:String;
public var deviceName:String;
public var energyCost:Number;
public var currencySymbol:String;
public var energyConsumption:Number;
public var unit:String;
public var perUnitRate:Number;
public var dateCollected:String;
public var extraDetails:String;
public function toString():String
// TODO Auto Generated method stub
var result:String= "DeviceId="+deviceID+" DeviceName="+deviceName+" EnergyCost="+energyCost+" CurrencySymbol="+currencySymbol+" EnergyComsumption="+energyConsumption+" Unit="+unit+" unitRate="+this.perUnitRate+" dateCollected="+dateCollected+" ExtraDetails="+extraDetails;
return result;
Sample below shows the data populated in the object of type "EcecObject"
(mx.collections::ArrayCollection)#0
filterFunction = (null)
length = 15
list = (mx.collections::ArrayList)#1
length = 15
source = (Array)#2
[0] (mpcui::EcecObject)#3
currencySymbol = ".25"
dateCollected = (null)
deviceID = "KWH"
deviceName = (null)
energyConsumption = NaN
energyCost = NaN
extraDetails = "d6ffcc59-ec5a-424d-a950-dcf3944059c9"
perUnitRate = NaN
unit = "Dollar"
So if we see in the attribute "currencySymbol" the "perUnitRate" is poulated even if my handler code has the following statement
metricData.currencySymbol=dp.data[i]['CurrencySymbol'];
Want to know why the data is swaped in most of the cases. Any correction to be done in the handler code.
Appreciate your help.
Regards
Anand.The design depends on how much data you are having. If you have lot of data its better to use them separately.
When you create a cube you load historical data from source systems through a full load and later you will be doing delta loads to process new records.
As for as the data is conccerned a cube can contain both historical and transaction data. -
TO Display the row data as column in ALV
Hi experts ,
Need to display the row data in ALV as column.
The column of an ALV has the fieldnames of a table , this needs to be displayed as row data , that is as single row.
How can this can be achieved?Hi,
Actually it is not possible to disaply in multiple lines.
https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D50%26threadID%3D49517%26messageID%3D506378%23506378
https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/thread.jspa%3FforumID%3D50%26threadID%3D41133%26messageID%3D403371%23403371
This problem was discussed many times in this forum, u can search for more results. -
How to scale data in column chart?
Hi,
I have a column chart who's data ranges from 638 to 4,263,000. Due to this extreme range, the lower valued columns are hardly visible
Is there a way by which I can scale up the lower values or scale down the higher values, ultimately resulting in a chart with visible columns to the naked eye. Here's the screen shot for your reference:
(Click on the image to enlarge)
Appreciate you help...
-DeepakHello,
Thank you so much for that hint That one prompted me to use a PlotSeries instead of a ColumnSeries. And PlotSeries clearly shows up all the items, irrespective of how low or how high the value is. Looking at it, the user can drill down further, by clicking on that item.
Screenshot:
-Deepak -
I would like to add the Last Modified Date (of the GUI, not db) within my application, how can this be done?
Hi,
Can you elaborate a little? What exactly do you want the last modified date of? (the page? the application itself? something else?)
If it's just the last time the application was updated, the following query should work -
select
last_updated_on
from
apex_applications
where
application_id = :APP_IDYou could obviously use that to set the value of a page item or application item etc to display in your page template.
Really need more information from you to give a more specific answer. -
How to position x-axis dates in column chart
I have a column chart (see below) which can have one or more series where the x-axis of the series is a date common to each series. How can I get the date label to appear in the center of each group of columns? In the case shown
here, the date label would be exactly where the blue and yellow columns touch, but if there were just one column group it should appear below the center of each column, or if there were three series, it should appear in the center of the middle column,
and so on.Hello,
I have a problem similar like this. as
already comes the positioning of the
date in the middle.
But now with Format
(double), notindateformat ("dd/
MM/YYYY").
What
can I do to have
the Format Date on my Axis X?I use
the following function
foreach (DataPoint point in series1.Points)
//DateTime mydate = DateTime.FromOADate(point);
area1.AxisX.CustomLabels.Add(new CustomLabel(point.XValue - 1, point.XValue + 1, point.XValue.ToString(), 0, LabelMarkStyle.None));
//area1.AxisX.CustomLabels.Add(new CustomLabel(point.XValue - 1, point.XValue + 1, point.XValue.ToShortDateString(), 0, LabelMarkStyle.None));
thank you
for your help -
How to display three months data in ALV grid control
Hi
Thanks for all.I have tried now it is working but as per requirement month name and cumulative total will display like this format.cumulative total means month1amount+ month2amount+month3amount.And one more thing month range will change some times means sometimes i will give January date to march date and sometimes i will give July date to October date. but date range is same means between dates range is three months.
please tell me how to display.
GAS PRESSURE WELDING COST EFFECTIVENESS Dec-11 Cummulativetotal
Sr. No Item Unit Rate Qty Amount
GAS PRESSURE WELDING COST EFFECTIVENESS Jan-12
Sr. No Item Unit Rate Qty Amount
GAS PRESSURE WELDING COST EFFECTIVENESS Feb-12
Sr. No Item Unit Rate Qty Amount
Thanks & Regards,
Vasu.
Moderator message: only one thread per issue, please.
Edited by: Thomas Zloch on Feb 20, 2012Hi
Thanks for all.I have tried now it is working but as per requirement month name and cumulative total will display like this format.cumulative total means month1amount+ month2amount+month3amount.And one more thing month range will change some times means sometimes i will give January date to march date and sometimes i will give July date to October date. but date range is same means between dates range is three months.
please tell me how to display.
GAS PRESSURE WELDING COST EFFECTIVENESS Dec-11 Cummulativetotal
Sr. No Item Unit Rate Qty Amount
GAS PRESSURE WELDING COST EFFECTIVENESS Jan-12
Sr. No Item Unit Rate Qty Amount
GAS PRESSURE WELDING COST EFFECTIVENESS Feb-12
Sr. No Item Unit Rate Qty Amount
Thanks & Regards,
Vasu.
Moderator message: only one thread per issue, please.
Edited by: Thomas Zloch on Feb 20, 2012 -
Displaying last modification date
Hi, I am trying to show at the bottom of my JSP page the last time it was modified.
I am using old code, and it is now deprecated I think but I don't know how to work around it.
This is the JSP page:
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page import="java.util.*, java.io.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Last Modified</title>
</head>
<body>
<div class="modified">
<%
File thisPage = new File(request.getPathTranslated());
Date pageDate = new Date(thisPage.lastModified());
Calendar pageCalendar = Calendar.getInstance();
pageCalendar.setTime(pageDate);
int lastmodYear = pageCalendar.get(java.util.Calendar.YEAR);
int lastmodMonth = pageCalendar.get(java.util.Calendar.MONTH)+1;
int lastmodDay = pageCalendar.get(java.util.Calendar.DAY_OF_MONTH);
String monthPad = "";
String dayPad = "";
if (lastmodMonth < 10) { monthPad = "0"; }
if (lastmodDay < 10) { dayPad = "0"; }
out.println("Last Modified : "+lastmodYear+"-" monthPadlastmodMonth+"-"+dayPad+lastmodDay);
%>
<h2>
The current time is:
</h2>
<p>
<%= new java.util.Date() %></p>
</body>
</html>Very interesting.
Instead of request.getPathTranslated() you need to use:
request.getSession().getServletContext().getRealPath(request.getServletPath())
Maybe you are looking for
-
When I connect cam to my USB port It is detected by the system and working properly when running from My computer(USB Image Device #2). But when I am installing the software "Creative Live! Cam Sync (VF0520) Starter Pack 2.00.18" then it says "Setup
-
Can´t add a new web site in iweb
My web site is completely blocked, even all the options to do things in my iweb are in grey so I can´t do anything with it, please help???
-
Trying to deploy IE10 via WSUS... doesn't seem to work
I am trying to deploy IE 10 to my windows 7 machines using WSUS. I have imported the update from the catalog and approved it for install in my workstations group. I still have a hybrid environment of XP and Windows 7 - but of the 112 Windows 7 mac
-
Please forgive me. I don't know how to start a new question in the right spot. This is as close as i could find. My hard drive failed in my 2010 Mac Book Pro using Snow Leopard. I had been backing up using Time Machine to a Go Flex Home external hard
-
Dear all, Where po line item Tax condition values are stored and how get the values(relation). in konv table total heade condtion values are stored but I need line item level. Thanks in advance.