Create Document Property from data table in spotfire - spotfire

I have the below table in spotfire. And I need to create 2 document properties for baseline_month and monitoring_month. I cannot have a drop_down menu to select the values for document_properties. But I need to create the properties from table itself. I tried for hours, but unsuccessful. Any help here is highly appreciated.

Document.Properties["BaselineMonth"] = Document.Data.Tables["table_name"].Columns["baseline_month"].RowValues.GetMaxValue().Value

Related

Display a MDX dimension memeber as a measure (SSAS)

I`m relatively new to MDX and any help would be much appreciated
I have a fact table containing information about items: Feature_Parent, Feature and User story. The Feature Parent is the Parent of the Feature and the Feature is the parent of the User Story, it looks something like this:
And as seen in the table it also contains info about the states of these items
This fact table also has numerical values and this table is connected to a similar dimension table
I also build the following user hierarchy:
I`ve managed to create the following pivot using Scopes in MDX (The Row labels are the Relationship hierarchy):
I want to be able to add the State for each item as one column (meaning, add the State column as the Measure in the above pivot), so it would display state for each item for each level
Can someone maybe help me in this?
This is the attribute hierarchy for the States (this is an example for Feature, and I have similar ones for Feature_Parent and User Story):
Any help would be much appreciated!
Thank you!

Save column value based on the item in combobox

in PowerApps, I have default New Form screen for Table1 with Combobox linked to Table2 so the user is able to choose items from the Table2. Combobox is saving the selected item Column1 data from Table2 to Column1 in Table1.
What I need, is to be able to save appropriate combobox item Column2 data (from Table2) to Column 2 in Table 1.
Basically, I need to save item's Column1 AND! Column2 data from Table2 to Column1 and Column2 of Table1.
BTW: Tables are lists on Sharepoint.
Can you help please?
This level of customisation requires in any case abandoning the out-of-the-box forms and creating your own. For a simple example of this, please see here.
The approach to store the individual selected values in separate columns in Table 1 (as you suggest) is not the approach I would recommend. This is relatively easy to implement but is incomplete and has shortcomings, including but not limited to:
You need to create as many columns as there may be items in Table 2, and the number of items in Table 2 may vary over time
PowerApps cannot currently set a column value to Blank() in a data source, so you will need a work-around to deal with the situation where an item previously selected needs to be unselected
The correct way to deal with the combo box is to create a many-to-many relationship as outlined in this post.
When saving the changes, you need to:
Remove any records in the junction table where an item has been unselected via a Remove or RemoveIf statement
Create an entry for each new item that has been added to the relationship via a Collect or a Patch function
If you need guidance on this, please comment this answer and I will add more details.

How to create dynamic .mdsqx query for Master Data Services Excel Add-On?

Is there a way to modify MDS Excel Add-On saved XML query to work dynamically?
I'd like to filter results based on other linked entities.
I figured out the hardcoding way to change filter parameters for example [Group] IN ('1','2','3') but I can't get [Group] IN (SELECT Group FROM tbl WHERE x=y) to work.
Suggestions are highly appreciated!

YUI Changing data table depending on list selection

Please advise, I want to make a drop down list that can filter a data table for example if you have data table for invoices and user can select from a drop down list that has invoice types 'debit credit .. etc' , so depend on this selection it should filter the data table using YUI.
Many Thanks.
This example is more complex than what you describe, but it's the same basic idea: http://jafl.github.com/yui3-gallery/querybuilder/

Adding Column Using Subsonic 3.0.0.5 Migration

I want to know that How to Insert New Columns to an existing database Table using Subsonic 3.0.0.5 MIGRATIONS.
Basically I want to alter an existing table in MS SqlServer database and add three more columns into it.
Please tell me How I will be able to do it
Regards,
Naveed Khan
Just change your object and the column will be added/updated whatever. So if you have an object called "Post" and add a property, it will be added as a column in the DB.
See this video...
http://subsonicproject.com/docs/Simple_Repo_5_Minute_Demo
It has to do with the conventions of SubSonic.
As the object is singular, it adds the plural to the table (or expects the table to be plural).
So it will expect an object called Order to map to a table called Orders.
There is only two solutions that I can see for you
1) Rename you table to the plural name.
2) Modify Subsonic code to remove the adding of the plural.

Resources