how to build parent-subdepartment data table in excel? - parent-child

I have data in below format
I need this to be realigned indicating the top most parent level department for every departm
In the screenshot below, the topmost parent dept for Europe is Accounts & Payments. Can anyone please help me to realign with Macro
Realigned screenshot
I am new to Excel macro, so i couldn't find the way to get it doen
Can anyone please me on this ?

Related

Field is periodically updated. Need to show New and prior field when changed

For this report, I need one field (Sales Code) to only show if it has been updated. Periodically they change Sales code and I want a report to show the prior code along side the new code when it changes. Along with its part number and so on.
I was wondering the best way to go about tackling this request.
I tried to do _add_days -1 and compare the Sales code --> Sales code1. I dont think that will give me what I am looking for.
For example Sales code changes from AA --> AB.
I want to see New CODE OLD Code Part Number and so on...
AB AB 12345
The pattern you are encountering is called a slowly changing dimension.
Here's a wee free primer.
https://www.kimballgroup.com/2013/02/design-tip-152-slowly-changing-dimension-types-0-4-5-6-7/
You don't mention the structure of the data you're working with so it would be quite difficult for me to say what type you have other than the fact that you're trying to track historical data and seem to have it captured somehow rules out type 0.
Because of that, I can't come down from Mount Sinai with the solution but this can help you start to think through the problem.
In Framework manager have the modeler design the fields for SalesCode and SalesCode1
To only show if there was a change
Add a detail filter:
SalesCode <> SalesCode1
To control the context of time, have a separate filter like:
[Sales Date] between ?FromDate? and ?ToDate?

how can I create a list of receipts from database in javafx?

I have two database table,
"product" table has those fields--> prID, transactionID, itemName, itemQuantity, itemPrice.
"payment" table has those fields--> pyID, paymentID, paymentType, paymentAmount, itemPrice.
transactionID and paymentID are the same.
now, I like to create list of receipts for the same day.
What is your suggestion to do that?
I have to use two table, and add some extra data and it needs to span inside the container (tabPane).
here is the pic of something i am trying to do.
Thanks in advance.
I used TilePane and put the GridPane in this TilePane.
I also created Labels and spanned these labels inside GridPane.
So far I havent done the database fetching for this project but what I was looking for is this idea.
Thanks everyone who showed an interest in this subject.

I want generate a crystal report with multiple Sub details involve multiple tables

i display data in grid like this and want a crystal report like this print the data.
but i have no clue how to do this. Let me try to explain further this case.
for every row of main table i have displayed subdetails in subgridvew and this subgrid data is fetched by keys in main table and an other table (this table has fixed values).
this would be first report i would create.
please gimme clue or tell if i am not so clear about asking question
For this kind of requirement you need to use cross tab...where in rows you need to provide data from table 1 and for rows first take data from table then from table 2 which will geoup as per your requirement

Datagrid using fuel ux

I'm using Fuel ux data grid for showing records in a table format. I need some additional functionality. I have to create a link button inside the data grid each row. Please anyone tell me is it possible? If yes let me know the solution. Thanks in advance
This is possible - Adam Alexander has some sample code here: https://github.com/adamalex/fuelux-dgdemo/blob/master/index.html#L129-134
The general process is to create a formatter function that can take the returned data from your data source and apply a transformation to create html, text, or other content as needed. Note that the column named 'image' doesn't reference anything that exists in the original data, but the property 'image' on item is created by the formatter function so it can be rendered.
The above code was used for this article, if you want to see it in action: http://dailyjs.com/2012/10/29/fuel-ux/

Implementing RadPanelBar

HI,
I have a table with 3 columns Itemid(int),Itemname(string),ItemDesc(string).. Im trying to use a radpanelbar to display this information, where the bar initially shows the item name and on clik/expansion it will show the item description.. I tried looking at the examples on telerik site but didnt understand the point of datafieldid and datafieldparentid. What are they used for and what would their values be for my table.. I tried using different combination of column names for these two ids but I still didnt get it..
Can someone point me in the right direction..
Thanks,
J. Adams
These properties are used when you bind the panelbar to self-referencing hierarchical table with id->parentid columns related in primary->foreign key style. Your table structure does not seem to be hierarchical and you can populate the control only with root items or build its items with your own logic.

Resources