How do i output a table in a teststand report
I'm using TestStand 3.0 and Labview 7.0. I have a string table in my labview step that i want to see in the teststand report. How do i do this? thanks
Hello, J.Venkatesh!
In the future, we'd really appreciate it if you'd create new forum threads for new questions - this allows us to better manage the forums and gives our users the ability to search for questions by forum thread/topic!
That being said, the solution provided by Matt P. in 2004 still applies to you. Even though you're using a TestStand XML report and a LabVIEW Array instead of a LabVIEW table, you can still embed HTML tags into the XML report. Simply index into and parse your LabVIEW array into strings, include the appropriate HTML table tags and then pass this HTML string back to TestStand. This string can then be placed into the Step.Result.ReportText field of any step and will be formatted into a table, as you desire.
Modifying Matt's LabVIEW VI is as simple as replacing the LabVIEW table with a LabVIEW array and then using a Number to Decimal String.vi in order to cast the numbers as strings - those are the only modifications you need to make!
I hope this helps!
Derrick S.
Product Manager
NI DIAdem
National Instruments
Similar Messages
-
How to find how name of view and table using in Discoverer report
Hi all,
Please help me, i have requirement, i need name of views and tables used in discoverer reports.
plz help its urgent.
regards,
Vivek GautamAs per my knowledge goes, We can see from Administrator which Folder is associated with a Workbook. Else you may have to manually open each and every workbook and look for the objects.
-
How to re-size the table in a OBIEE Report
Hi All,
I am creating a report with table and graph placing side-by-side. My graph size is big and table displaying only top 10 values. How can i increase the size of table to make it almost similar in size to graph. I tried various options like editing table and setting custom width and height, but did not work ??Hi,
you can increase the table size by using the table properties.
table properties-->Additional formatting options--->give the values of height and width like 800,600 etc.
mark if helpful/correct...
thanks,
prasanna -
How to find all the table used in a report
Hi Expert ,
Is there is any program to find out all the tables which are used in a perticular report .
Thanks in advance
TarakWell, so far Viquar Iqbal has given the only really correct answer - use SQL trace. The reason the others are incomplete, is because they don't consider that a report might call a function module or a class method that accesses a table. In fact, for many applications this is exactly what happens - db accesses are abstracted away from the main program.
The other alternative to SQL trace is to use Run Time Analysis. The advantage of SQL trace is that it shows the tables hit in order.
matt -
How to force an agg table for a particular report?
Hi,
We have a report which shows duplicate records from the same table. we assume that this is because the report is hitting the fact table instead the agg table.
Is there any way to force the report to hit the Agg table and not the fact?
We have tried :
1. content level tab option
2. Number of elements in the dimensional hierarchyHi,
For eg, Consider three tables
F_Sales_y (Summary at Year level)
F_Sales_m (Summary at Month level)
F_Sales (fact day level)
Do the joins at physical layer, In BMM use the other two tables as source inside F_Sales.
Set the cotent level for the summary facts F_Sales_y (year), F_Sales_m (month).
now based on the dimension level the corresponding the bi server will choose the corresponding fact.
Also check this post,
http://obiee101.blogspot.com/2008/11/obiee-making-it-aggregate-aware.html
Thanks,
Vino -
How to store output of SQ01 into internal table.
Hello Experts
How to store output of SQ01 into internal table.
Thanks,
UmeshYou can't store the sq01 output into internal table.
Once you create the query it will generate the abap program, in that program you can see the contents.
Regards
Sasi -
How to make a row as selected in output internal table in oops ALV
Hi All,
I have ALV grid output using oops ALV concept, in my output i have a checkbox as first column when i select this checkbox and press a push button 'Print' which is there above ALV grid that particular line in output table should get selected and i need to code some logic for printing selected row.
how to make the particluar row in the output internal table to be selected and where to write the logic for print once it is pressed?
Thanks in advance
Srilakshmi.but the checkbox is not getting set in internal table when i select some checkboxes.
can anybody explain y the checkbox in internal table not set?
Hi Srilakshmi,
As explained by Uwe, when we change a field ( say check box ) in ALV grid, the view (frontend) changes (showing the tick mark) but the changed data ( normally ) is not transfered to the backend.
We can initiate this data transfer by just registering the cl_gui_alv_grid=>mc_evt_modified edit event
go_grid->set_table_for_first_display( CHANGING it_fieldcatalog = pt_fieldcat
it_outtab = pt_outtab ).
go_grid->set_ready_for_input( 1 ).
go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ). " This does the trick
Now as soon as we check a checkbox, the data_changed event is triggered.
This initiates data transfer to the backend and the checkbox field in internal table is updated.
check the below code for example.
DATA: go_cont TYPE REF TO cl_gui_custom_container,
go_grid TYPE REF TO cl_gui_alv_grid,
gt_fieldcat TYPE lvc_t_fcat,
gv_language TYPE spras VALUE 'E',
gt_outtab TYPE TABLE OF bus_loca_demo WITH HEADER LINE.
START-OF-SELECTION.
CALL SCREEN 100.
* MODULE PBO OUTPUT *
MODULE pbo OUTPUT.
SET PF-STATUS 'BASIC'.
SET TITLEBAR '001'.
PERFORM create_and_init_alv CHANGING gt_outtab[]
gt_fieldcat.
ENDMODULE. "pbo OUTPUT
* MODULE PAI INPUT *
MODULE pai INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
SET SCREEN 0. LEAVE SCREEN.
WHEN 'PRINT'.
BREAK-POINT.
ENDCASE.
ENDMODULE. "pai INPUT
FORM create_and_init_alv CHANGING pt_outtab LIKE gt_outtab[]
pt_fieldcat TYPE lvc_t_fcat.
CHECK go_cont IS NOT BOUND.
CREATE OBJECT go_cont
EXPORTING
container_name = 'CUSTOM'.
CREATE OBJECT go_grid
EXPORTING
i_parent = go_cont.
PERFORM build_display_table.
PERFORM build_fieldcat CHANGING pt_fieldcat.
go_grid->set_table_for_first_display( CHANGING it_fieldcatalog = pt_fieldcat
it_outtab = pt_outtab ).
go_grid->set_ready_for_input( 1 ).
go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ). " This does the trick
ENDFORM. "CREATE_AND_INIT_ALV
FORM build_display_table.
FREE gt_outtab.
DO 10 TIMES.
gt_outtab-creation_partner = sy-index.
gt_outtab-date_field = sy-datum.
APPEND gt_outtab.
ENDDO.
ENDFORM. "build_display_table
FORM build_fieldcat CHANGING pt_fieldcat TYPE lvc_t_fcat.
DATA ls_fcat TYPE lvc_s_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'BUS_LOCA_DEMO'
CHANGING
ct_fieldcat = pt_fieldcat.
LOOP AT pt_fieldcat INTO ls_fcat.
CASE ls_fcat-fieldname.
WHEN 'CHECKBOX'.
ls_fcat-checkbox = 'X'.
ls_fcat-edit = abap_true.
MODIFY pt_fieldcat FROM ls_fcat.
WHEN 'ENTER_FIELD' OR 'DBLCLICK_FIELD'.
ls_fcat-no_out = abap_true.
MODIFY pt_fieldcat FROM ls_fcat.
ENDCASE.
ENDLOOP.
ENDFORM. "build_fieldcat
Cheers,
Jose. -
How to get the plsql table data into output cursor
Hi,
Could anybody please help me.
Below is an example of the scenario..
CREATE OR REPLACE PACKAGE chck IS
PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR);
TYPE get_rec is record (ename varchar2(20),
eno number(12));
TYPE t_recs IS TABLE OF get_rec INDEX BY BINARY_INTEGER;
emp_tab t_recs;
END chck;
CREATE OR REPLACE PACKAGE BODY chck AS
PROCEDURE getdata(dept_no IN VARCHAR2,oc_result_cursor OUT sys_REFCURSOR)
is
BEGIN
select ename, eno
bulk collect into emp_tab
from emp;
open oc_result_cursor for select * from table(emp_tab); -- I believe something is wrong here ....
END;
END chck;
the above package is giving me an error:
LINE/COL ERROR
10/29 PL/SQL: SQL Statement ignored
10/43 PL/SQL: ORA-22905: cannot access rows from a non-nested table
item
let me know what needs to be changed
Thanks
Manjumanjukn wrote:
once i get the data into a plsql table, how to get this plsql table data into the cursor?There is no such thing as a PL/SQL table - it is an array.
It is nothing at all like a table. It cannot be indexed, partitioned, cluster, etc. It does not exist in the SQL engine as an object that can be referenced. It resides in expensive PGA memory and needs to be copied (lock, stock and barrel) to the SQL engine as a bind variable.
It is an extremely primitive structure - and should never be confused as being just like a table.
Its use in SQL statements is also an exception to the rule. Sound and valid technical reasons need to justify why one want to push a PL/SQL array to the SQL engine to run SELECT 's against it. -
How to populate data in table control .
hi all,
i put matnr no. in screen no. 103
validation is done at that screen only.
now when i want to modify dat record
when i put matnr no. at screen 103
so how i will get all data of dat number to table control screen.Hi Darshan,
Here is a detailed description of how to update data in table controll.
Updating data in table control
The ABAP language provides two mechanisms for loading the table control with data from the internal table and then storing the altered rows of the table control back to the internal table.
Method 1: Read the internal table into the Table Control in the screenu2019s flow logic. Used when the names of the Table Control fields are based on fields of the internal table.
Method 2: Read the internal table into the Table Control in the module pool code. Used when the names of the Table Control fields are based on fields of the database table.
Method 1 (table control fields = itab fields)
In the flow logic we can read an internal table using the LOOP statement. Define the reference to the relevant able control by specifying WITH CONTROL <ctrl>
Determine which table entry is to be read by specifying CURSOR <ctrl>-CURRENT_LINE.
After the read operation the field contents are placed in the header line of the internal table. If the fields in the table control have the same name as the internal they will be filled automatically. Otherwise we need to write a module to transfer the internal table fields to the screen fields.
We must reflect any changes the user makes to the fields of the table control in the internal table otherwise they will not appear when the screen is redisplayed after PBO processing, (eg, after the user presses Enter or scrolls) However, this processing should be performed only if changes have actually been made to the screen fields of the table control (hence the use of the ON REQUEST)
PROCESS BEFORE OUTPUT.
LOOP AT ITAB_REG WITH CONTROL TCREG
CURSOR TCREG-CURRENT_LINE.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP AT ITAB_REG.
MODULE MODIFY_ITAB_REG.
ENDLOOP.
MODULE MODIFY_ITAB_REG INPUT.
MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
ENDMODULE.
Method 2 (table control fields = dict. fields)
If using a LOOP statement without an internal table in the flow logic, we must read the data in a PBO module which is called each time the loop is processed.
Since, in this case, the system cannot determine the number of internal table entries itself, we must use the EXIT FROM STEP-LOOP statement to ensure that no blank lines are displayed in the table control if there are no more corresponding entries in the internal table.
PROCESS BEFORE OUTPUT.
LOOP WITH CONTROL TCREG.
MODULE READ_ITAB_REG.
ENDLOOP.
PROCESS AFTER INPUT.
LOOP WITH CONTROL TCREG.
CHAIN.
FIELD: ITAB_REG-REG,
ITAB_REG-DESC.
MODULE MODIFY_ITAB_REG
ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
MODULE READ_ITAB_REG OUTPUT.
READ TABLE ITAB_REG INDEX TCREG-CURRENT_LINE.
IF SY-SUBRC EQ 0.
MOVE-CORRESPONDING ITAB_REREG TO TCREG.
ELSE.
EXIT FROM STEP-LOOP.
ENDIF.
ENDMODULE.
MODULE MODIFY_ITAB_REG INPUT.
MOVE-CORRESPONDING TCREG TO ITAB_REG.
MODIFY ITAB_REG INDEX
TCREG-CURRENT_LINE.
ENDMODULE.
Updating the internal table
Method 1
PROCESS AFTER INPUT.
LOOP AT ITAB_REG.
CHAIN.
FIELD: ITAB_REG-REG,
ITAB_REG-DESC.
MODULE MODIFY_ITAB_REG ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
MODULE MODIFY_ITAB_REG INPUT.
ITAB_REG-MARK = u2018Xu2019.
MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
ENDMODULE.
Method 2
PROCESS AFTER INPUT.
LOOP WITH CONTROL TCREG.
CHAIN.
FIELD: TCREG-REG,
TCREG-DESC.
MODULE MODIFY_ITAB_REG ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
MODULE MODIFY_ITAB_REG INPUT.
MOVE-CORRESPONDING TCREG TO ITAB_REG.
ITAB_REG-MARK = u2018Xu2019.
MODIFY ITAB_REG INDEX TCREG-CURRENT_LINE.
ENDMODULE.
Updating the database
MODULE USER_COMMAND_100.
CASE OK_CODE.
WHEN u2018SAVEu2019.
LOOP AT ITAB-REG.
CHECK ITAB_REG-MARK = u2018Xu2019.
MOVE-CORRESPONDING ITAB_REG TO TCREG.
UPDATE TCREG.
ENDLOOP.
WHEN u2026
u2026
ENDCASE.
ENDMODULE.
Hope this will solve your problem.
Regards,
Pavan.
Edited by: PAVAN CHANDRASEKHAR GANTI on Aug 3, 2009 12:48 PM -
How to give the table in a Portal Report an ID?
I have a report created in Oracle Portal 10.1.4 using the standard Portal Report feature. The results are output in HTML as a table. How do I give the table an ID attribute?
This is what teh output looks like now:
<TABLE border="1" cellspacing=0 cellpadding=2 SUMMARY ="Printing Table Headers">
<TR>
<TH nowrap><FONT CLASS="PortletHeading1">Heading 1</FONT></TH>
<TH nowrap><FONT CLASS="PortletHeading1">Heading 2</FONT></TH>
<TH nowrap><FONT CLASS="PortletHeading1">Heading 3</FONT></TH>
<TH nowrap><FONT CLASS="PortletHeading1">Heading 4</FONT></TH>
</TR>
<TR BGCOLOR=#BBBBBB>
<td align="center"><FONT CLASS="PortletText1">Value r1v1</FONT></TD>
<td align="center"><FONT CLASS="PortletText1">Value r1v2</FONT></TD>
<td align="center"><FONT CLASS="PortletText1">Value r1v3</FONT></TD>
<td align="center"><FONT CLASS="PortletText1">Value r1v4</FONT></TD>
</TR>
<TR BGCOLOR=#BBBBBB>
<td align="center"><FONT CLASS="PortletText1">Value r2v1</FONT></TD>
<td align="center"><FONT CLASS="PortletText1">Value r2v2</FONT></TD>
<td align="center"><FONT CLASS="PortletText1">Value r2v3</FONT></TD>
<td align="center"><FONT CLASS="PortletText1">Value r2v4</FONT></TD>
</TR>
</TABLE>Hi,
you can increase the table size by using the table properties.
table properties-->Additional formatting options--->give the values of height and width like 800,600 etc.
mark if helpful/correct...
thanks,
prasanna -
How to hide fields in Table maintenace screen
I have created a view with table maintenance generator. I would like to hide some fields. With event I am able to fill in those fields but I want to hide those from screen.
HI,
This is reff with ur below post, I have been stuck with same problem,
I got your code, how its functioning, but didn't get get where i have to write it.
plz tell me in brief.
Thanks in Advance.
Regards
Vivek
Re: How to hide fields in Table maintenace screen
Posted: Feb 6, 2009 11:42 AM in response to: Aarti Ramdasi in response to: Aarti Ramdasi
Click to report abuse... Click to reply to this thread Reply
Hi,
You can hide the fields like this..
For example
select-options:
s_carrid for spfli-carrid modif id gr1,
s_connid for spfli-connid modif id gr1,
s_cityto for spfli-cityto modif id gr2.
I am going to hide last fied..To do this
at selction-screen output.
if s_carrid is initial or s_connid is initial.
loop at screen.
if screen-group1 CS 'GR2'.
screen-active = 0.
modify screen.
endif.
endloop.
endif.
whenever u click on any one of the field i.e. carrid or connid the third field will displayed.Otherwies the last field cityto is not visible initially
Regards
Kiran -
How to Populate Internal table data to Table Control in a Report Program
Dear All,
How to Populate Internal table data to Table Control in a Report Program? It is a pure report program with out any Module pool coding involved, which is just used to display data. Till now it is being displayed in a report. Now the user wants the data to be displayed in a table control. Could someone tell me how to go about with this.
Thanks in Advance,
Joseph ReddyIf you want to use a table control, you will need to create a screen.
In your report....
start-of-selection.
perform get_data. " Get all your data here
call screen 100. " Now present to the user.
Double click on the "100" in your call screen statement. This will forward navigate you to the screen. If you have not created it yet, it will ask you if you want to create it, say yes. Go into screen painter or layout of the screen. Use the table control wizard to help you along the process. It will write the code for you. Since it is an output only table control, it will be really easy with not a lot of code.
A better way to present the data to the user would be to give it in a ALV grid. If you want to go that way, it is a lot easier. Here is a sample of the ALV function module. You don't even have to create a screen.
report zrich_0004
no standard page heading.
type-pools slis.
data: fieldcat type slis_t_fieldcat_alv.
data: begin of imara occurs 0,
matnr type mara-matnr,
maktx type makt-maktx,
end of imara.
* Selection Screen
selection-screen begin of block b1 with frame title text-001 .
select-options: s_matnr for imara-matnr .
selection-screen end of block b1.
start-of-selection.
perform get_data.
perform write_report.
* Get_Data
form get_data.
select mara~matnr makt~maktx
into corresponding fields of table imara
from mara
inner join makt
on mara~matnr = makt~matnr
where mara~matnr in s_matnr
and makt~spras = sy-langu.
endform.
* WRITE_REPORT
form write_report.
perform build_field_catalog.
* CALL ABAP LIST VIEWER (ALV)
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
it_fieldcat = fieldcat
tables
t_outtab = imara.
endform.
* BUILD_FIELD_CATALOG
form build_field_catalog.
data: fc_tmp type slis_t_fieldcat_alv with header line.
clear: fieldcat. refresh: fieldcat.
clear: fc_tmp.
fc_tmp-reptext_ddic = 'Material Number'.
fc_tmp-fieldname = 'MATNR'.
fc_tmp-tabname = 'IMARA'.
fc_tmp-outputlen = '18'.
fc_tmp-col_pos = 2.
append fc_tmp to fieldcat.
clear: fc_tmp.
fc_tmp-reptext_ddic = 'Material'.
fc_tmp-fieldname = 'MAKTX'.
fc_tmp-tabname = 'IMARA'.
fc_tmp-outputlen = '40'.
fc_tmp-col_pos = 3.
append fc_tmp to fieldcat.
endform.
Regards,
Rich Heilman -
How to show data through table control
Hi Experts,
I have created an table control through wizard using table EKKO.
I have to populate one internal table( type ekko ), and then show it in output through table control.
Please advise, how to do that and in where i have to write the codes.
I will reward points for every suggestion
Thanks in advance.
regardshi saubrab,
This is kiran kumar.G.I am sending some sample code to populate data into table control check it once.
i will give input in 100 screen. and display table control in 200 screen.check it once once ..ok....
SE38 :(CODE)
*& Module pool YMODULEPOOL_TABLECONTROL1 *
*& DEVELOPER : KIRAN KUMAR.G *
*& PURPOSE : TABLE CONTROL DEMO *
*& CREATION DT : 17/12/2007 *
*& T.CODE : YMODTABLECONTROL1 *
*& REQUEST : ERPK900035 *
PROGRAM ymodulepool_tablecontrol1.
Tables
TABLES: yvbap, "Sales Document: Item Data
vbak. "Sales Document: Header Data
Controls
CONTROLS: my_table TYPE TABLEVIEW USING SCREEN 200.
Global Variables
DATA: gv_lines TYPE i,
gv_lines1 type i,
gv_temp type i,
gv_flag(20) TYPE c VALUE 'DISP',
gv_mode1 TYPE c,
gv_mode TYPE c VALUE 'C'. " C: Change, D :Display
Internal Table
DATA: BEGIN OF gt_item OCCURS 0,
vbeln LIKE vbap-vbeln, "Sales Document Number
posnr LIKE vbap-posnr, "Sales Document Item
matnr LIKE vbap-matnr, "Material Number
matkl LIKE vbap-matkl, "Material Group
arktx LIKE vbap-arktx, "Short Text for Sales Order Item
cflag, "Deletion Indicator
END OF gt_item.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'ZTABLECONTROL' OF PROGRAM 'YMODULEPOOL_TABLECONTROL'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'DISP'.
SELECT single vbeln
erdat
angdt
bnddt
FROM vbak
INTO (vbak-vbeln,vbak-erdat,
vbak-angdt,vbak-bnddt)
WHERE vbeln = vbak-vbeln.
IF sy-subrc EQ 0.
*Fetch the table control data and place them in Internal Table
SELECT vbeln
posnr
matnr
matkl
arktx
FROM yvbap
INTO TABLE gt_item
WHERE vbeln = vbak-vbeln.
IF sy-subrc EQ 0.
*NO OF line in the Internal Table
DESCRIBE TABLE gt_item LINES gv_lines.
my_table-lines = gv_lines + 20.
ENDIF.
ENDIF.
*Call Screen 200.
SET SCREEN 200.
WHEN 'EXIT' OR 'BACK' OR 'CANCEL'.
*Exit from the Program
CALL TRANSACTION 'SESSION_MANAGER'.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
module STATUS_0200 output.
SET PF-STATUS 'ZTABLECONTROL1'.
endmodule. " STATUS_0200 OUTPU
*& Module copy_data OUTPUT
text
module copy_data output.
*Fetch the current line data from the Table control
read table gt_item index my_table-current_line.
if sy-subrc eq 0.
*Populating data into screen fields
gt_item-vbeln = gt_item-vbeln.
gt_item-posnr = gt_item-posnr.
gt_item-matnr = gt_item-matnr.
gt_item-matkl = gt_item-matkl.
gt_item-arktx = gt_item-arktx.
endif.
SE51:CODE (SCREEN 100)
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
SE51 :CODE (SCREEN 200)
PROCESS BEFORE OUTPUT.
MODULE STATUS_0200.
loop at gt_item with control my_table cursor my_table-current_line.
module copy_data.
endloop.
PROCESS AFTER INPUT.
loop at gt_item.
MODULE USER_COMMAND_0200.
endloop.
HAVE A NICE DAY..
Award points if helpful,kiran kumar.G -
How to build semantic model table from excel 2013 budget table?
I have an excel 2013 budget table produced by finance department. The title of the table is <<Year 2015 Resource Budget>> with columns such as (Item, Budget). There is line of business app which tracks daily usage. It is SQL database which
I can access. The SQL table has columns such as Date, Item, Usage. I am asked to produce some PowerView reports using DAX.
I am thinking about using Excel 2013 PowerPivot. The following is the step of my plan.
Add excel 2013 Budget table to PowerPivot
Transform the budget table using DAX to a new table with includes date. For each item budget, the value can be evenly divided by 365. I don't know if this is possible with DAX and need advice from you
Import daily usage from SQL database into PowerPivot
Merge the imported SQL daily usage table with the transformed budget table with daily breakdown. The output table has 4 columns (Date, Item, ValueType, Value). The ValueType can be either Budget and Usage. (I also do not know if it is possible to
use DAX to merge two PowerPivot table into anther table with added new columns. If it is possible, I would love to hear from you on how to do this)
Finally, I can produce BI reports based on the newly merged table
Update: Here are more sample data.
Input Budget
<<Year 2014 Resource Budget>>
Item
Budge
Pen
365
Paper
1095
<<Year 2015 Resource Budget>>
Item
Budge
Pen
1825
Paper
1095
Bag
365
I am thinking to expand the Budget as follow but I don't how to use DAX to do it
Date
Item
Budge
31/12/2014
Pen
1
31/12/2014
Paper
3
1/01/2015
Pen
5
1/01/2015
Paper
3
1/01/2015
Bag
1
Here is the Daily Usage table
Date
Item
Usage
31/12/2014
Paper
2
31/12/2014
Pen
6
1/01/2015
Paper
10
1/01/2015
Pen
2
1/01/2015
Bag
1
I was thinking to merge the expanded Daily Budget and Daily Usage as follow for BI reporting. This was my thinking, may not a good solution using DAX
Date
Item
Type
Value
31/12/2014
Paper
Usage
2
31/12/2014
Pen
Usage
6
1/01/2015
Paper
Usage
10
1/01/2015
Pen
Usage
2
1/01/2015
Bag
Usage
1
31/12/2014
Pen
Budget
1
31/12/2014
Paper
Budget
3
1/01/2015
Pen
Budget
5
1/01/2015
Paper
Budget
3
1/01/2015
Bag
Budget
1
Off course, I need to build dimension tables for Date, Item, Item Category, and Value Type
jlHi JL,
Just for consideration, I'd:
Keep budget and actuals separately - create Fact_Y2015Budget and Fact_Actuals;
Hook both tables to same dimesnions (time; if there is no time for budget, assign it all to the first day of your 2015; line item etc. - whatever you are asked to report about)
If you can, pull usage not only for 2015, but for prior year(s) too
Create measures like [Usage Budget Atteinment YTD]:=TotalYTD(SUM([Usage]),your_time)/([Budget]*PriorYear(TotaYTD(SUM([Usage]),you_time)/CALCULATE(SUM([Usage]),DATESBETWEEN(your_first_day_of_year2015,your_last_day_of_2015))))
The calculation in #4 compares actual ("usage") to portion of budget that would have been used up if 2015 had the same seasonality as 2014... If you couldmshare specific sample, I'd buuild exact formula...
Daniel -
How to use Output Transmission Medium 8 (Special Function)
Hi All,
May I get how to use output transmission medium 8(Special Function) in Output Determination.Hi,
configure output type with transmission medium 8
in nace transaction and assign it to driver program
and so that entry exist in table tnapr and use
RSNAST00 program to send output as email.
Before you have create entry in va02->header-output->
with processsing status 0 .
Regards
amole
Maybe you are looking for
-
Time Machine disk corrupt. help!
Ok, so I have had time machine up for about 2 or 3 months now, and it's gone pretty smoothly. But a few days ago my power went out. I have a BACK-UPS, so it was no problem. But ever since my Time Machine disk has topped appearing on the desktop, and
-
Upgrade from Mac OS 10.1 to something better
Hi, I have Mac OS 10.1 and want to upgrade. What is best program to get? I have a G4. Also, I have Mac OS 10.1 operating system as well as 9.0. If I delete 9.0 will that affect 10.1? Do I really need it? HELP!!
-
How i can connect to devices using apple id
how i can connect to devices that using apple id
-
Ok, so I downloaded OS 5 to my iPhone 3GS about a week ago and I was trying to figure out iCloud, but then I realized my computer, an older MacBook, is only running 10.6.8 so it can't work with iCloud. So I've deactivated most of the syncing options
-
Any HTML editor (similar to Frontpage) available?
It's the one program I miss from my recent switch. I use it for eBay postings and simple web design. Any one have any luck with any editors with a preview preferably? Thanks in advance.. chris