Date Set from Member Property Value
I need to create a 6Month Date Set in the cube, however instead of using the long Month Name, there is a Short Month name in the hierarchy as a Member Property to the long name (see pic below, red arrow pointing at the property) but I'm struggling creating
the syntax for the Set. I'm probably missing something small. Appreciate the assistance.
Hi Jdb09,
Accoring to your description, you are going to create a 6 Month date set in the cube using Short Month name, now what you want is that how to use this property to create the set, right?
Analysis Services exposes intrinsic properties on dimension members that you can include in a query to return additional data or metadata for use. So you can use the query like below.
with member [measures].[a] as
[Date].[Calendar].Properties( "Calendar Quarter" )
select [measures].[a]
on 0,
[Date].[Calendar].[Month].members on 1
from
[Adventure Works]
Reference
http://msdn.microsoft.com/en-us/library/ms145963.aspx
http://msdn.microsoft.com/en-us/library/ms145528.aspx
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support
Similar Messages
-
Target Spry RowID on page with Multiple data sets from another page
Hi all,
I am trying to target a specific data item, on a page with
multiple data sets, from a link on another page. (I also have to
pass the link through Flash, but lets start with the simple
part...)
You can take a look at the site in progress here:
http://www.3andband.com/TestSite/iframeTest3.html
From the Home page I want to link to specific news or concert
items on the News page
I have been trying to get SpryURLUtils to do it but I can't
seem to get it working.
Any help would be greatly appreciated.
Thanks!
Bendid u try if it even passes the row value?? with a simple
alert? alert(params.row)
Also maby u need to reorder the scripts to this;
<script src="../SpryAssets/SpryURLUtils.js"
type="text/javascript"></script>
<script src="../SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryData.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryCollapsiblePanel.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryEffects.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryAccordion.js"
type="text/javascript"></script>
and your js script
var params = Spry.Utils.getLocationParamsAsObject();
var dsConcerts = new
Spry.Data.XMLDataSet("includes/concerts.xml", "Concerts/concert");
dsConcerts.setColumnType("image", "image");
var dsNews = new Spry.Data.XMLDataSet("includes/news.xml",
"News/item");
//Set an observer so that when the data is loaded, we update
the current row to the url param value
dsNews.addObserver({ onPostLoad: function(ds, type) {
dsNews.setCurrentRow(params.row); }
function MM_effectBlind(targetElement, duration, from, to,
toggle)
Spry.Effect.DoBlind(targetElement, {duration: duration,
from: from, to: to, toggle: toggle});
So url params get loaded before the data -
Need to load large data set from Oracle table onto desktop using ODBC
I don't have TOAD nor any other tool for querying the database. I'm wondering how I can load a large data set from an Oracle table onto my desktop using Excel or Access or some other tool using ODBC or not using ODBC if that's possible. I need results to be in a .csv file or something similar. Speed is what is important here. I'm looking to load more than 1 million but less than 10 million records at once. Thanks.
hillelhalevi wrote:
I don't have TOAD nor any other tool for querying the database. I'm wondering how I can load a large data set from an Oracle table onto my desktop using Excel or Access or some other tool using ODBC or not using ODBC if that's possible. I need results to be in a .csv file or something similar. Speed is what is important here. I'm looking to load more than 1 million but less than 10 million records at once. Thanks.
Use Oracle's free Sql Developer
http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html
You can just issue a query like this
SELECT /*csv*/ * FROM SCOTT.EMP
Then just save the results to a file
See this article by Jeff Smith for other options
http://www.thatjeffsmith.com/archive/2012/05/formatting-query-results-to-csv-in-oracle-sql-developer/ -
Can't create Data Set from BI analysis
Hi,
I use BIP 11g and I want to create new Data Set based on Oracle BI Analysis. But when I choose my analysis (query) in BI catalog and click Ok button it show me Processing.. and then... nothing happends (Browser still show me window Create data set - Oracle BI Analysis )
So I can't create Data Set from BI analysis.
Is there anybody who made this well?
Any one has idead on how to resolve this?
Thanks,
DmitryHi,
Could you explain how you solved this issue. I am having the same problem but I am not using cyrilic symbols.
Regards. -
Defining a spry data set from a url variable
I am developing a family web site that, among other things, uses a single 'recipe' page to display recipes from different xml files as called by a url variable (e.g. ?xmlFile="{url}"&recipeName="{name}") from a summary page. I can get the recipe name to reproduce using a $_GET php function, but I cannot establish the data set that way. How can I define the data set from the incoming URL variable? The necessary files are:
The starting point from which I send the selected URL variable (use the scampi recipe) http://ebogott.com/recipeBox.php.
The file that is generated is http://ebogott.com/recipe.php?XMLfile=GrilledScampiOnAngelHair.xml&recipeName=Grilled%20Sh rimp%20Scampi%20on%20Angel%20Hair%20Pasta
This methodology will allow me a number of cascading selections. I know this is not unique. I just haven't figured it out.
don Carlos de la Playadon Carlos,
The following shows the strength of the Spry framework. All very easy and simple.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="SpryAssets/xpath.js" type="text/javascript"></script>
<script src="SpryAssets/SpryData.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMasterDetail.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
var dsRecipes = new Spry.Data.XMLDataSet("recipes/recipes.xml", "recipes/recipe");
var dsIngredients = new Spry.Data.XMLDataSet("recipes/{dsRecipes::url}", "recipe/ingredients/ingredient");
var dsProcess = new Spry.Data.XMLDataSet("recipes/poultrySoup.xml", "recipe/process/element");
//-->
</script>
</head>
<body>
<div class="MasterDetail">
<div spry:region="dsRecipes" class="MasterContainer">
<div class="MasterColumn" spry:repeat="dsRecipes" spry:setrow="dsRecipes" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{name}</div>
</div>
<div spry:detailregion="dsRecipes dsIngredients dsProcess" class="DetailContainer">
<div class="DetailColumn">{@genre}</div>
<div class="DetailColumn">{@serves}</div>
<div class="DetailColumn">{@time}</div>
<div spry:repeat="dsIngredients">
<div class="DetailColumn">{dsIngredients::qty}</div>
<div class="DetailColumn">{dsIngredients::measure}</div>
<div class="DetailColumn">{dsIngredients::item}</div>
</div>
<div spry:repeat="dsProcess">
<div class="DetailColumn">{dsProcess::element}</div>
</div>
</div>
<br style="clear:both" />
</div>
</body>
</html>
You will have to give a bit of style to the detail region.
I hope this helps.
Ben -
Can I create a data set from Excel spreadsheet?
I have been looking for help with Spry data sets. I want to know if I can create a data set directly from an spreadsheet or do I have to save it to a CSV file first. I will be upgrading to DW CS4 shortly & trying to do my homework now.
Can someone point me to an article or video explaining how to do this? I have gone through various helps with HTML tables as data sets.
Thanks.Yes, mostly.
We have a CSV data set, which is a comma-separated value file, which can easily be exported from Excel.
http://labs.adobe.com/technologies/spry/samples/data_region/CSV_sample.html
Hope this helps.
Don -
Having trouble with page refresh after targeting a spry data set from external url
ok I have a link <a href="als.htm?row=10" (when you click
on Insurance Agent forms button) on my index page
http://www.nmprc.state.nm.us/index.htm
and I finally got it to open the als page (
http://www.nmprc.state.nm.us/als.htm)
with row10 open.......Yeah!!!!!!!!!!!!
but.....
yep....with me there is always a but....
after the page loads from clicking on the button on index,
with row 10 active, it no longer loads correctly by itself.....I go
to the menu and refresh the page by loading the als.htm url fresh,
the page no longer loads right.
var dsAgents = new Spry.Data.XMLDataSet("als.xml",
"agents/agent/name",
{sortOnLoad:"name",sortOrderOnLoad:"ascending"});dsAgents.setColumnType("name",
"html");
var params = Spry.Utils.getLocationParamsAsObject();
//Set an observer so that when the data is loaded, we update
the current row to the url param value
dsAgents.addObserver({ onPostLoad: function(ds, type) {
dsAgents.setCurrentRow(params.row); }
});ok, I changed the code to the below and the page functions as
expected but with 2 errors .......I have no idea how to fix them
the page is
http://www.nmprc.state.nm.us/als.htm
one error is about the code and one is about the menubar
var params = Spry.Utils.getLocationParamsAsObject();
//Set an observer so that when the data is loaded, we update
the current row to the url param value
var defaultRowNumber = 0;
var defaultObserver = {};
defaultObserver.onPostLoad = function(ds, type)
ds.disableNotifications();
ds.setCurrentRowNumber(defaultRowNumber);
ds.enableNotifications();
// This is a one-shot observer. Let this notification
complete
// before removing it from the data set's observer list.
setTimeout(function(){ ds.removeObserver(defaultObserver); },
0);
if (typeof params.row != "undefined")
defaultRowNumber = parseInt(params.row);
dsAgents.addObserver(defaultObserver); -
I am using this to create a data set that will be passed as an anolog output therefore it needs to have the correct array dimensions to go into the analog write vi.
I'm updating my request... I've figured out how to do this by copying an example that uses a simple FOR loop (as seen in the attached current version of my VI). My question now becomes this: Is there a way to save the Y values corresponding to those X values into two more arrays? That is, just for argument's sake, let's say I took the first 100 elements from the X array, and found them to be positive. Then I would like to take the first 100 elements of the Y array and put them into a 'Y Values for X > 0' array. ...And likewise with the negative X values, they should have a separate array of corresponding 'Y values for X < 0' array.
I can see that I should somehow save the indices of the positive X values from the large arrray wh
en I sort them out, and use those indices to pick out the elements from the main Y array with the same indices.
I just can't seem to set up the code necessary to do this. ...Can anyone help, please?
Attachments:
Poling_Data_Reader_5i.vi 79 KB
30BLEND.txt 3 KB -
Use data set from a SqlDataSource as an input table for another query
I have a ASP.net winforms app with C# code behind. I am trying to provide a forecasting function that would allow users to perform "what if" analysis on parts of the database without changing the underlying database. Currently this forecast works
by taking the production schedule from a table and running it against the forecasting query. What I'm trying to accomplish is allowing the user to have a copy of the data in a gridview so they can edit it and see the differences between their schedule and
the current.
My first attempt involved having a SqlDataSource create a temporary table and populate it with data from the main database. This allows for the first part (giving the user a copy of the data set to manipulate without changing the original). I tried to create
a second SQLDataSource and reference the temporary table but it is not valid and appears that the temp table only exists in the session called by the first SqlDataSource.
Currently the first data source looks like this
CREATE TABLE #mastersched(
product [char](16) NULL,
,date [datetime] NULL,
INSERT INTO #mastersched
product
,date
select
product
,date
from (Main database table);
select
product
,date
from #mastersched
I need to use the table #mastersched in a join statement within the forecasting query to return another dataset to be displayed either in a gridview, chart, report, etc.Hello REIData,
This issue is more regarding ASP.NET, I suggest you posting it to the suitable forum:
http://forums.asp.net/
There are ASP.NET experts who will help you better.
Thanks for your understanding.
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Open data set from Text mode to Binary mode
Hello All,
In a program i am using the command
OPEN DATASET file FOR OUTPUT IN TEXT MODE
ENCODING NON-UNICODE IGNORING CONVERSION ERRORS.
Now i want to change this open data set to binary mode. I mean to change the command like below.
OPEN DATASET file FOR OUTPUT IN BINARY MODE.
when i do this. the output in the file is totally changing. I mean previously i have some text now i have some diffrent characters.
How can i use this command with out change in the output as previous output. Please tell me the changes and why i have to do.
OPEN DATASET file FOR OUTPUT IN BINARY MODE.
Regards,
Lisa.
Message was edited by:
Lisa RoyText Mode means that the records in the file have a carriage return marking the end of each record.
Binary Mode means the file is a string of data.
You can't read a text file in BINARY MODE, or a binary file in TEXT MODE.
If you are changing the mode, then you must be supplied with a file in the new mode. -
Set list custom property value on creation
I have a list template created, and a custom action that exposes a settings page. On the settings page, I can read / set a custom list property. I would like to be able to set the property when I'm creating the list (and have a similar requirement when
creating a site). Is there any way to expose the custom property to the "New list" dialog (Silverlight)?Hi Ahmad,
Could you please follow the below steps to get ALL to the top:
-Edit the objects properties for which you want to apply condition.
-Click on SQl editor and check the option don't generate sql
-Write the sql as follows:
SELECT DISTINCT
TABLE NAME.COLUM NNAME
FROM
TABLE
UNION
SELECT '*ALL' FROM TABLE
For Example:
SELECT DISTINCT
EMP.ENAME
FROM
EMP
UNION
SELECT '*ALL' FROM EMP
__-Create a pre defined condition in universe_:
@Select(Emp\Ename) IN @Prompt('VAL',A,'Emp\Ename',MULTI,FREE) OR '*ALL' IN @Prompt('VAL',A,'Emp\Ename',MULTI,FREE)
Note: Use '*ALL' insted of 'ALL' -
How to make a data set from this???
Hi all,
I have to read an XML file and then display each item on my
page.
Now, I have no problems doing this with simple, one level XML
files like an RSS file for example. But the XML I have to read is a
little different to what I am used to:
quote:
<SearchResult CartNumber="A418 " CartType="M"
StartTime="2008-06-11T14:44:29.323"
EndTime="2008-06-11T14:47:46.15" CartComplete="true" StaticText=""
NextPlayTime="0001-01-01T00:00:00"
GUID="e76df096-139e-4270-a5dc-4a2cf0cddf16">
<CustomProperties>
<CustomProperty PropertyName="iTunesLink"
PropertyValue="" />
<CustomProperty PropertyName="SongHookLink"
PropertyValue="" />
<CustomProperty PropertyName="RingToneLink"
PropertyValue="" />
<CustomProperty PropertyName="AlbumArtLink"
PropertyValue="Stranger In Town Album - Bob Seger.jpg" />
<CustomProperty PropertyName="TicketLink"
PropertyValue="" />
<CustomProperty PropertyName="SongLyricPhrases"
PropertyValue="" />
</CustomProperties>
<MusicData CartNumber="A418" Title="STILL THE SAME"
Artist="BOB SEGER" Length="3:11.0" LengthSeconds="191"
CategoryName="Exile" CategoryCode="X" Note1="." Note2="." />
</SearchResult>
You can see it has multiple levels for each search result.
Can someone help me work out how I would display the results
on a page, repeating. (There will be 5 of these 'SearchResult'
items.
Again, I am fine with single level XML.. but as you can see..
this one has Custom properties which is a level deep, then all the
MusicData in one bit..
Any help is greatly appreciated.
Kind Regards
ScottHi Scott,
I'm beggining to understand a bit better what it is you want
to display, and I realize you're still a bit confused as to what
Spry actually does to the XML.
If you call {data::@iTunesLink} on the HTML, according to the
definition of the "data" dataset, Spry will lookup an attribute
name iTunesLink on the following XPath:
"SearchResults/SearchResult/CustomProperties/CustomProperty". The
problem is, that attribute does not exist on your XML.
Valid calls would include {data::@PropertyName} and
{data::@PropertyValue} and would yield, respectively, "iTunesLink"
and "
http://bigpondmusic.com/Album/Snow-Patrol/Eyes-Open.aspx?search=2304296&h=30081101"
as an example first result (considering there is no "repeat" set).
Does that make sense to you?
If I've interpreted your XML correctly, I think you are
making an assumption that Spry understands that PropertyName and
PropertyValue are related. It does not make that assumption, and it
shouldn't - they are completely different things in your XML, they
just happen to be attributes for the same tag ("CustomProperty").
Why don't you try to trim down your XML to something more
straightforward like this:
<CustomProperties>
<iTunesLink value="
http://bigpondmusic.com/Album/Snow-Patrol/Eyes-Open.aspx?search=2304296&h=30081101"
/>
<SongHookLink value="" />
<RingToneLink value="" />
<AlbumArtLink value="Eyes Open Album - Snow Patrol.jpg"
/>
<TicketLink value="" />
<SongLyricPhrases value="" />
</CustomProperties>
Then use subpaths instead of NestedXML (better for your kind
of XML), and call the attributes like this (placeholder >>
yield):
{iTunesLink/@value} >>
http://bigpondmusic.com/Album/Snow-Patrol/Eyes-Open.aspx?search=2304296&h=30081101
{SongHookLink/@value} >> yields blank
{RingToneLink/@value} >> yields blank
{AlbumArtLink/@value} >> Eyes Open Album - Snow
Patrol.jpg
You get the picture...
Unless there is a reason to use that particular structure on
the XML, I recommend you streamline it...
Give it a shot and then come back again when you hit the next
obstacle.
Regards,
Tomas -
How do I display a hyperlink in a Spry data set from static xml?
I have a page that should display files available for clients to open and save. The xml works because all info displays, but I get no link. I've tried putting the <a href></a> tag in, but get an 'undefined' . The current iteration gives me the title, but no link except in Opera where I still get undefined. What am I missing here? Here is the XML line in question:
<doc value="docs/MCB_Landfill_II_75_dwgs.pdf">Dwgs</doc>
This worked in another site, but that used xsd and xml docs rather than the spry dataset. Active link below.
Mille Grazie,
Karl
http://bamforth.com/project_docs.htmNever Mind. HTML & XML 101. I put the <a href> tag in the html doc and not the xml. I DID have to add an additional line to separate the name from the file name, but who cares.
See ya, ya'll.
Karl -
How to extract the a date field from a text value?
Hi,
SAMLE TEXT Date: 06-FEB-14 02:47:07
I have sample column in flat file like mentioned above, i need to capture only the date from this column. Can anyone please help me on how to extract this date from the column?Dear Mohammed Shariff,
My suggestion is check it in google you can find no.of formulas related to excel.
Ur's
Mohan -
Change task email notificate date setting from mm/dd/yyyy to dd/mm/yyyy
When a SharePoint 2013 workflow sends an email as part of Assign a Task, it sends the due date as mm/dd/yyyy. I need it to be the English format of dd/mm/yyyy. Does anyone know where I can change this setting?
Cheers,
Mark
SharePoint Online (2013)
Learning SharePointHi,
I wonder if you have changed the Regional settings in Site Settings.
If I change the Regional settings, I can accomplish your requirement with these steps below:
Click gear icon, choose Site Settings.
Click Regional settings under Site Administrator section as the left part of the screenshot.
Create work follow as the right part of the screenshot(I create 4 types result).
You could refer to the result in the last part of the screenshot.
Please refer to the screenshot below:
If you could not accomplish your requirement with steps above, could you provide your steps and workflow what you create?
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]
Maybe you are looking for
-
Step by Step procedure for ALE
Dear Friends, Can anyone please post the step by step procedure of creating ALE with an example. Regards SN
-
I just update my iPhone 4 to iOS 6 yesterday an it worked great but now its glitching . Can't use pictures to save off of face book my phone stopped vibrating,typing is slow, couldn't use my phone to talk on the phone all day unless it was on speaker
-
Pop up buttons in template?
yeah , ive had a duplicating issue with the template... figured that out, now, i want to add a DW8 pop up menu to my template and it is greyed out, then we tried to make the button and pop up in an html file and copy it.. copy it and it dosent work ?
-
JSP usebean setProperty property is not working ??
I am new to this forum so not sure whether I put my concern in correct category or not. I have the following piece of code in my JSP <jsp:useBean id="bean" class="com.cdr.settlement.bean.MassUpdateUtilityBean" scope="request"> <jsp:setProperty name="
-
Is After Effects CS4 compatible with Mavericks?
Can't seem to find that info anywhere, which leads me to believe the answer is No...