Display value at the end of timeline range selection
I need to design Power View Report for which Date will act as "Timeline", so when I select DAte as "2010-10-01" to "2010-11-01" then It should show me report having data on "2010-11-01 because it is latest data value
that I am having.
Hi Sandip,
You could give the following solution a try...
You will need to add a Date table to your model if you don't have this already. At a minimum this table will have a single date column with all the dates in each year that you have data for in the other table(s) in your model. It's also a best practice to
mark this as a date table.
'Date' table
Date
01/01/2010
02/01/2010
03/01/2010
04/01/2010
05/01/2010
06/01/2010
07/01/2010
08/01/2010
09/01/2010
10/01/2010
11/01/2010
12/01/2010
13/01/2010
14/01/2010
15/01/2010
16/01/2010
17/01/2010
18/01/2010
19/01/2010
20/01/2010
21/01/2010
22/01/2010
23/01/2010
24/01/2010
25/01/2010
26/01/2010
27/01/2010
28/01/2010
29/01/2010
30/01/2010
etc...
You could then define a measure that does a basic SUM aggregation for each of the columns that you require a measure for; these are your base measures. In this example, I am only focusing on the Positive column...
SumOfPositive:=CALCULATE(SUM(Data[Positive]))
Next, you can define another measure that provides the behaviour that you want, however there are two options for this depending on the exact behaviour required. They look very similar but they are different:
PositiveLASTDATE:=
CALCULATE(
[SumOfPositive],
LASTDATE('Date'[Date])
OR
PositiveLASTNONBLANK:=
CALCULATE(
[SumOfPositive],
LASTNONBLANK(
'Date'[Date],
[SumOfPositive]
The LASTDATE version of the measure will find the last date that you have filter in your range and return the value
regardless of whether there is data for the date or not. This means that if you select
"2010-10-01" to "2010-11-01" it will return the result for "2010-11-01" even if there is no data for this date. On the other hand, the LASTNONBLANK version of the measure will find the last date with data.
This means that if you select "2010-10-01" to "2010-11-01" in this instance, if "2010-10-01"
is the last date with data then the value for this date will be returned.
Regards,
Michael
Please remember to mark a post that answers your question as an answer...If a post doesn't answer your question but you've found it helpful, please remember to vote it as helpful :)
Similar Messages
-
Timeline usage : To display value at the end of timeline values
Hi Team,
In my current project, I want to implement functionality given below. All records are present in one single table.
Table has columns as (City,Date,Positive,Negative,CountOfItems)
I have created data model as given below.
I need to design Power View Report for which Date will act as "Timeline", so when I select DAte as "2010-10-01" to "2010-11-01" then It should show me report having data on "2010-11-01 because it is latest data I am having.
Final report should look like as below.
But as I have used "Sum" function, it shows me wrong result.
My actual meaning is that, on every date of selected window in timeline, value at the last day of selected window should be displayed at report.
Can anyone help me to do db design and report formulation.It looks like this was answered in your other thread...
Display value at the end of timeline range selection: http://social.msdn.microsoft.com/Forums/en-US/sqlkjpowerpivotforexcel/thread/20ce91d4-9cc1-4680-be71-6172c64e4da7/#20ce91d4-9cc1-4680-be71-6172c64e4da7
In the future, please try to avoid creating multiple threads for the same problem :)
Regards,
Michael
Please remember to mark a post that answers your question as an answer...If a post doesn't answer your question but you've found it helpful, please remember to vote it as helpful :) -
Need to place a variable value at the end of report heading in BI 7
Dear All,
We have to place a variable value at the end of the report heading and the value should get refreshed whenever we change the variable by using "Change Variable Value". I have created a macro and the value will get triggered unless and until we click on any where on a sheet. But, we want to automate this one by using a macro.
Ex: Quarterly TA Host Country Details As Of "Variable Date" Variable is created on TA Date characteristic. User can enter date on Pop up window box at the time of changing a variable TA Date. We need changed date at the end of the Report heading Qua----
Please suggest me on how to place variable value at the end of report heading by using a macro.No need to use Macro. You can use text variable.
Goto the Query Description and click on the Text variable icon.
Create a text variable of processing type as REPLACEMENT PATH and replace it with the characteristic for which you have a ready for input variable that will be eneter by the user.
This will populate the text variable with the value entered by teh user.
Use this text variabkle along with the Query Description. So your description will look something like REPORT_TITLE&TXT_VAR&
Hope this helps. -
Hi ,
Facing strange issue in Xpath debatching in Orchestration.
Getting following error in construct shape:
The part 'part' of message 'Message_In_Copy' contained a null value at the end of the construct block
Code inside the construct block:
sXpath = System.String.Format("/*[local-name()='Customers' and namespace-uri()='http://Debatch.Customer']/*[local-name()='Customer' and namespace-uri()='http://Debatch.Customer' and position()={0}]", nLoopCount);
System.Diagnostics.Debug.WriteLine(sXpath);
Message_In_Copy= xpath(Message_In, sXpath);
Schema used:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="http://Debatch.Customer" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" targetNamespace="http://Debatch.Customer" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Customers">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" name="Customer">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="id" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Can anyone help me out ? to identify the root cause for above issue.
Thanks,
Kind Regards,
girsh
girishkumar.aI agree with Shankycheil here, querying XPath will return XMLNode and thus can't be assigned to XMLNode.
But for debatching in Orchestration using Xpath is not a very good idea.
Because using XPATH loads the complete message in memory(XML Structure) and then performs processing.
This approach is always prone to throwing Out of Memory exception and low in performance also.
Therefore I would suggest you to perform debatching by calling XML Disassembler(XMLReceive) pipeline.
As pipeline works with Stream it will have better performance and you will also get complete control over the messages.
Refer the below samples for debatching using XML Receive pipeline within Orchestration.
Comparrison between XPATH and ReceivePipeline for Debatching:-
De-batching within an orchestration using XPath or calling a pipeline
Debatching within Orchestration using Pipeline-
http://tech-findings.blogspot.in/2013/07/debatchingsplitting-xml-message-in.html
https://jeremyronk.wordpress.com/2011/10/03/how-to-debatch-into-an-orchestration-with-a-pipeline/
Thanks,
Prashant
Please mark this post accordingly if it answers your query or is helpful. -
How to obtain the value at the end of quarter
Hi,
I am new to CR2008. I need to obtain the value of a particular field (say inventoryEndValue) at the end of each quarter, and use it as the starting value (say inventoryStartValue) for the next quarter. I want to show these values (the end value of a quarter and the beginning value for the next quarter, though both values are same) in both the charts and cross tabs.
Can you please help me how to solve this?
Thanks,
Roshan.Hi Roshan,
For creating manual running total, please follow the below steps:
RESET->The Reset formula initializes the variable and assigns it an initial value. This formula is typically placed in a headers section, such as, Page Header, Report Header, or Group Header.
WhilePrintingRecords;
Global NumberVar nRT := 0;
EVALUATE->The Evaluate formula updates the value of the variable. This formula is typically placed in the Details section.
WhilePrintingRecords;
Global NumberVar nRT := nRT + (value);
DISPLAY->The Display formula shows the current value of the variable on the report. This formula is typically placed in a footer section, such as, Page Footer, Report Footer, or Group Footer.
WhilePrintingRecords;
Global NumberVar nRT;
Hope this helps you!
Regards,
Anindita -
How can I get dataTable to display values from the java layer?
When I use the dataTAble in my JSP page it will only display values from my java layer if the facets tag has it's name set to "header". Why is this happening?
If I set it to "header" and I look at the page source it actually has created the correct number of rows but it doesn't put the values between the <td> tags? It see's the length of my list but it doesn't pick the values out of the list.
<h:dataTable var="data" value="#{NameBean.test}" border="1">
<h:column>
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<!-- <h:outputFormat styleClass="outputFormat" id="format1" value="#{NameBean.test}"></h:outputFormat>-->
<h:outputText styleClass="outputText" value="#{NameBean.test}" style="" rendered="true" escape="false"/>
</f:facet>
</h:column>
</h:dataTable>
public List gettest()
List li = new LinkedList();
Object Developers[] = {"M@n00j", "sdsadas"};
for( int i = 0; i < Developers.length; i++ )
li.add(Developers);
return li;
Thanks in advance to anyone that can help.
-ls6vI've been able to get it working with some of those changes along with changes in the JSP. I think it's a setting or two in the JSP that'll allow the program to run correctly.
I have a list and it's returned like what you suggested. A day or two ago I tried to move the outputtext outside of the facet tag but nothing would print, I know believe that's related to the following setting in the JSP:
rows="0" in the <h:dataTAble tag
Unfortunately the dataTAble isn't displaying the values correctly. It prints all of the values (Strings) in the list on each row and it make a new row for the number of items in the list.......... ???
Here's what it's printing to the screen (the table):
===================
== [asdasd], [sddfdfd] ==
===================
===================
== [asdasd], [sddfdfd]==
===================
what it should print:
============
== [asdasd] ==
============
============
== [sddfdfd] ==
============
My code:
public List gettest()
List li = new ArrayList();
li.add("asdasd");
li.add("affffd");
return li;
}JSP
<h:dataTable border="1" columnClasses="list-column-left"
headerClass="list-header"
rowClasses="list-row-odd"
id="table"
rows="0"
value="#{NameBean.test}"
var="data">
<h:column>
<f:facet name="header">
<h:outputText value="test"/>
</f:facet>
<h:outputText value="#{NameBean.test}" style="" rendered="true" escape="false"/>
</h:column>
</h:dataTable> -
Right side of a shuttle - Retunr id and not the display value of the LOV.
Hi all,
The matter is how to populate/persist right-side of Shuttle in apex 4.0.1 after submit. The only problem I have is that the values
on the right side of the shuttle are dispayed as (retun value of the LOV) and not as (dislay valueo of the LOV). What I'm missing.
There is a way to pre-load dynamically, so depending on a query, a set of values on the right of the Shuttle, and then allow end user to change the preselection adding or removing values.?.On page load you need to set the page item value to a colon separated list. Basically just reverse what ever processing you are doing on submit.
-
I have a tabular form and I'm setting one of the fields to a Popup Key LOV (named LOV). The named LOV is a static LOV. When the popup is displayed there are no values displayed. The same thing happens if I use a Popup LOV (named LOV).
I created a sample application http://apex.oracle.com/pls/apex/f?p=15762:1that shows what happens. When the job field popup is selected, no items are displayed. If I change the item to a Select List (named LOV) it works fine.
Is this a bug?Hi
I am also getting the same issue. Hope it could be a bug.
Can anyone plz confirm this?
Thanks
Lakshmi -
How to display values inside the Pie chart?
Hi Expert,
How to display the values inside the Pie chart, instead of Mouse over values. Can u pls help me to do this one.
Is it possible can we use mentioned below kind of pie charts in Xcelsius 2008.
Thanks & Regards,
Tamil
Edited by: Rajesh Kumar Thoppe on Dec 13, 2010 10:41 AMHi A G,
Thank You for quick response!!!
in this Text tab I am able to see below check box only
1) Chart Title
2) Sub Title
3) Legend
4) Mouse-Over
Kindly advise me if i am wrong and let me know how to achieve this.
Note: We have Xcelsius 2008 environment
Thanks & Regards,
Tamil
Edited by: Rajesh Kumar Thoppe on Dec 13, 2010 1:58 PM -
SessionID with different 13 digit value at the end for evry request
Hi all,
Our session descriptor looks like this
<wls:session-descriptor>
<wls:timeout-secs>1200</wls:timeout-secs>
<wls:debug-enabled>true</wls:debug-enabled>
<wls:id-length>100</wls:id-length>
<wls:cookie-max-age-secs>1200</wls:cookie-max-age-secs>
<wls:persistent-store-type>REPLICATED_IF_CLUSTERED</wls:persistent-store-type>
<wls:sharing-enabled>false</wls:sharing-enabled>
</wls:session-descriptor>
However the session id has a extra 13 digit value appended at the end.
Please see some sample session ids printed from debug logs.
these vary in different servers and are causing the session replication to fail .Any reason why such an anamoly happens
Session ID:nzsQP7BQmKppYpqyGzZZLd61lWQyDnJgq5n8NgRG0vG1cb6FTfX7Qs6K1nhvkyzh2wQdGnhr2knXsPRXTrWMpLVMJGzn9vBTTwdM!-1438928405!1009911873!1337672080496
Session ID:p2NJP7GHyzRNTglRvV8hQLsdpxJfRNPW3hRGnlXpgy7Y2KmkyFzK4dZQQQmpQ17Mhm2bhT0vqvsG1MK1r32vkmG2Fq5RcQn0S7Pg!-1438928405!1009911873!1337672743271So the engineer came and, of course, everything was working ok. He did fit some kind of RF filter on my main socket, and 'changed the pair' on one of the outside cables. Since then, I've only had a noisy line once, and seem to have been connected for 3 days solid, which is a record!
I've switched back to my BT Home hub 3, which guavas me more stats. The line has previously given me up to 6mb/s, now only getting 1.6.
Do you think, now the line seems more stable, with the stats below I should be able to maintain a higher speed now?
Thanks
Line state: Connected
Connection time: 3 days, 02:19:39
Downstream: 1.601 Mbps
Upstream: 444.9 Kbps
ADSL Settings
VPI/VCI: 0/38
Type: PPPoA
Modulation: G.992.3 Annex A
Latency type: Interleaved
Noise margin (Down/Up): 17.7 dB / 22.6 dB
Line attenuation (Down/Up): 44.8 dB / 27.0 dB
Output power (Down/Up): 18.6 dBm / 12.6 dBm
FEC Events (Down/Up): 3144673 / 0
CRC Events (Down/Up): 14434 / 38
Loss of Framing (Local/Remote): 0 / 0
Loss of Signal (Local/Remote): 0 / 0
Loss of Power (Local/Remote): 0 / 0
HEC Events (Down/Up): 111873 / 10
Error Seconds (Local/Remote): 1011 / 4 -
CR+LF Code at the end of each record selected in sql cursor
i am selecting some data records in a sql cursor and writing it into a file using UTL_FILE.puT in a plsql procedure.
at the end of select statement if i add ||chr(13||chr(10) iam getting CR+CR+LF code
if i add only || chr(10) i am getting LF code.
What i need is only CR+LF code. Kindly help to use any other commands.
Thanks,
Shivaji.
Edited by: Shivaji M on Apr 22, 2010 12:11 AM
Edited by: Shivaji M on Apr 22, 2010 12:36 AMIt's in the book!
"PUT_LINE terminates the line with the platform-specific line terminator character or characters."
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10577/u_file.htm#i997640 -
Single valued Report Prompt as start value- calculate the end value
Hi all,
I want to be able to create a report prompt (not a dashboard prompt) on a report.
The prompt has to be a drop down list to select the 'Start Month'. In the report, I'd like to display *12* months starting from the 'Start Month' selected in the Prompt.
So, if the value selected in the Prompt is March 2010, the report should display months from March 2010 to Feb 2011.
PS: This report is not going to be on a dashboard. It will be an ad-hoc report in the Shared Folders for users.
thanks!I think that clears it up then, yes? So the answer is, use a dashboard to share.
Answers is great for individual use and, if the report doesn't require prompts, for sharing. But once you involve prompts, that's where you need the dashboard as the "palette" on which to "paint" your reports with prompts. Answers is a tool with its purpose, but so is the dashboard. Take advantage of the purpose of the tool and your life will be much easier!
If that answers your question, mark answer as "correct" and close this thread. Thanks. -
Displaying values in the table
HI Team,
I am trying to display 10 rows, with 3 cols in a table.
but it is displaying only last row.
this is the code is wrote.
for(int i=1;i<=10;i++)
wdContext.nodeEmpDetails().invalidate();
wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpId(500+i);
wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpName("Emp Name :"+i);
wdContext.nodeEmpDetails().currentEmpDetailsElement().setSalary(10000+i);
wdComponentAPI.getComponent().getMessageManager().reportSuccess(" Value..."+ i );
And bounded this node attributes to table cols.
when i print them i am getting all the values.
But the table is displaying only last row.
cardinality is 1--n
selction is 0-1
How can display all 10 rows in table
Regards,
NareshHi Naresh,
Instead of
for(int i=1;i<=10;i++)
wdContext.nodeEmpDetails().invalidate();
wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpId(500+i);
wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpName("Emp Name :"+i);
wdContext.nodeEmpDetails().currentEmpDetailsElement().setSalary(10000+i);
wdComponentAPI.getComponent().getMessageManager().reportSuccess(" Value..."+ i );
put following
for(int i=1;i<=10;i++)
wdContext.nodeEmpDetails().addElement(wdContext.nodeEmpDetails().createEmpDetailsElement());
wdContext.nodeEmpDetails().moveLast();
wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpId(500+i);
wdContext.nodeEmpDetails().currentEmpDetailsElement().setEmpName("Emp Name :"+i);
wdContext.nodeEmpDetails().currentEmpDetailsElement().setSalary(10000+i);
wdComponentAPI.getComponent().getMessageManager().reportSuccess(" Value..."+ i );
wdContext.nodeEmpDetails().moveFirst(0);
Regards.
Gopal -
Display values in the called form whose data is inserted in calling form
Hi,
We have a custom form (Form 1) wherein we call another form (form2) when a button is pressed in Form1.
Scenario
Form 1 - contains 3 blocks -
-->Header Block - HB,
-->Child Block - CB1 - which is child of HB and is multi records block
-->Child Block CB2 - Child of CB1
The canvas of forms 1 holds only HB and CB1 and due to business reasons we are populating CB2's table (say T2) in the post insert trigger of the CB1.
A button is pressed which opens a new form - a display only form (form 2) .
Form 2 just fetches the records that are inserted into the table T2. Note that Form 2 is also a multi record block.
Issue
Assuming that I update some value in Form 1 - block CB1 and save it ; and then click on the button...how should I make sure that the changed values are reflected in the Form 2.
Questions
1) On updating CB1 values - since this impacts values in CB2 T2 table- which trigger should this be handled.
2) how should we make sure that on clicking the button that opens Form 2, the changed values in T2 are reflected.
Regards
S948611 wrote:
Hi,
We have a custom form (Form 1) wherein we call another form (form2) when a button is pressed in Form1.
Scenario
Form 1 - contains 3 blocks -
-->Header Block - HB,
-->Child Block - CB1 - which is child of HB and is multi records block
-->Child Block CB2 - Child of CB1
The canvas of forms 1 holds only HB and CB1 and due to business reasons we are populating CB2's table (say T2) in the post insert trigger of the CB1.
A button is pressed which opens a new form - a display only form (form 2) .
Form 2 just fetches the records that are inserted into the table T2. Note that Form 2 is also a multi record block.
Issue
Assuming that I update some value in Form 1 - block CB1 and save it ; and then click on the button...how should I make sure that the changed values are reflected in the Form 2.
Questions
1) On updating CB1 values - since this impacts values in CB2 T2 table- which trigger should this be handled.
2) how should we make sure that on clicking the button that opens Form 2, the changed values in T2 are reflected.
Hi S
This is your STATUS
Total Questions: 16 (15 unresolved) YOU didn't keep track your post and also don't close your thread when your problem is solved without marking the right answer. For this when people search this forum and will get similar problem and your post ..they are confused, is there so solutions ???
Hope remember this...
Let's come to your questions.
1) On updating CB1 values - since this impacts values in CB2 T2 table- which trigger should this be handled.You can use post-insert for reflect after insert, and post-update to get reflect the update.
and
2) how should we make sure that on clicking the button that opens Form 2, the changed values in T2 are reflected.when opening the form pass parameter to second form and execute the related data.
For more check the similar post
1. {thread:id=2513529}
2. Calling a form and passing a context
Hope this helps
Hamid
Mark correct/helpful to help others to get right answer(s).* -
Index of Values in the List Boxes on a Selection Screen
Hi,
I have a list box on the selection screen for Month field. It has the values Jan, Feb, Mar....etc in it.
These entries, I added thru the VRM_SET_VALUES.
Now, I want to default the month to current month SY-DATUM+4(2).
Is there any FM to which I can send this SY-DATUM+4(2) as an Index and the corresponding value gets set for the Month field.
As an alternatvie, I could use<b> Case Sy-DATUM+4(2). when '01'. p_month = 'Jan'. etc etc..</b> But I want to avoid this big case statement.
Please suggest.
Thanks,
Suryakiran D.Hi Suryakiran,
Try to use the func <b>MONTH_NAMES_GET</b>.It will
return the month name along with the number.
And also you can directly select from table <b>T247</b>
Thanks&Regards,
Siri.
Message was edited by: Srilatha T
Maybe you are looking for
-
Will my existing version of Acrobat Pro 9 work on Windows 7 64bit?
As I'm considering upgrading to Windows 7 and use Acrobat continously, will my existing version of Acrobat Pro 9 work or will I need to download or purchase a new version?
-
Multitenant application authentication in SharePoint Online (O365)
I am able to use OAuth2 to authenticate using the mechanism described here: http://msdn.microsoft.com/en-us/library/azure/dn645542.aspx - my intention is to allow my 3rd party WebApp to allow users to grant access to their SharePoint content via Azur
-
Drag and Drop Swing Components between two different Application Windows
Hi!!! I tried the Dnd feature using the DnD api. It was a simple test, where I ahd two different app windows each made up of a JLabel. One I registered as drag component and the other as a drop component. the drop componenet(JLabel) does not have any
-
Using filter values in planning functions
Hi experts! Is it possible to somehow pass the values users set in query filters (during query execution) into the planning function and use them there as variables? Thanks!
-
How to make a contribution Analysis in HPCM
Hi, I am trying to get the contribution of diferente stages in the final stage (cost object) in the form of a P&L. But when I model costs in different stages I cant see all this cost together¨in a report in the same column. Could you help me? Natalia