Statements in calculation fields
Can you use sql statements in calculated fields, for instance can you use a statement like IF(GL_SEGMENT-04='401000'TO'409999'THEN SUM(GL_BALANCE_PERIOD_BAL_DB-GL_BALANCE_PERIOD_BAL_CR)
I would think that you could use statements within calculated fields but I am having no luck.
Thanks in advance
You are so close, I guess. An alternative syntax you may try:
SUM(CASE WHEN SEGMENT3 BETWEEN '401010' AND '405999' THEN PERIOD_NET_DR-PERIOD_NET_CR ELSE 0 END)
You may get error message for not using table prefix. In that case, use the table prefix with each field. As you have seen, Discoverer takes care of the prefix when it first executes the formula. Regarding 0 balance, make sure that the sum is not zero for that range. You may also try with a bigger range. Good luck!
Similar Messages
-
Hi Everyone
I used this in SP calculated column field.
=IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))
it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
Thanks,
NormanHi Everyone
I used this in SP calculated column field.
=IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))
it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
Thanks,
Norman -
DAX Dynamic Banding | Calculated Member based on Calculated Field
Good morning,
I've created a Power Pivot model that measures the blood glucose levels of clinical patients at specific times of the day. The requirement is that this metric, let's call it GlucoseLevel, is always averaged as it wouldn't make sense to sum up the values.
To meet this first requirement, I set the "Summarize By" property of the GlucoseLevel column to "Average".
The second requirement is to band the GlucoseLevel values so that groups of people can be measured by this band rather than by the individual measure values. I created a banding table in Excel and then imported it into the Power Pivot model. The banding table
has three columns (BandName, MinValue and MaxValue) and has the following values:
VERYLOW: Min Value = 0; Max Value = 3.99
OK: Min Value = 4; Max Value = 6.99
WARNING: Min Value = 7; Max Value = 10.99CRITICAL: Min Value = 11; Max Value = 30.00
It is at this point where I face my challenge. I have a GlucoseLevel measure and I have a banding table. Great. The challenge is: How do I create a calculated, dynamic
member that will look at my GlucoseLevel measure (at whatever level), do a lookup to my banding table, and then return the "BandName" column from the Banding table at that specific level? So to clarify what I mean by level: I want to be able
to view the bandings at Year level, or a Month level, or even at a week level. Then depending on what level I am at, my measure should have a Band associated to it.
I've tried to solve this issue in a couple of ways:
Attempt 1
Create a calculated column in my fact table that contains a nested IF statement to manually band my GlucoseLevel values. This works fine if I view my data at the lowest level of granularity, however
it does not work if I start looking at my data at the day, week, month etc. levels
Attempt 2
1.) Create a calculated field (not a calculated column) that averages my GlucoseLevel measure. This is cool because it will average my measure at whatever level I am viewing it at. Let's call
this field Bob...
2.) Band my measure Bob by creating another calculated field (called PatientBand). This field uses my banding table (described earlier) in conjunction with my calculated field Bob. This works perfectly, except for one big flaw: Excel sees this banding field
as a measure, and not as something that I can use as a column / row...
So my question is: Can I trick Excel into viewing my PatientBand calculated field as an attribute, and not as a measure? And if not, how do I get around this challenge? Here is the DAX formula that I used to create my second calculated field "PatientBand":
PatientBand:=CALCULATE(
VALUES (Bandings[BandName]);
FILTER (
Bandings;
Test[Bob] >= Bandings[MinValue]
&& Test[Bob] <= Bandings[MaxValue]
Thanks!So there are 2 ways that I can think of for doing that.
1) if you are only using MDX clients like Excel or Reporting services you can create a text based measure that returns the banding name. (Note that this sort of approach does not work at the moment with PowerView as it only displays numeric measures). This
would effectively let you show a label next to a reading as opposed to moving the reading under a given banding column.
Banding Name :=
CALCULATE (
VALUES ( Bands[BandName] ),
FILTER (
Bands,
[Average of GlucoseReading] >= Bands[BandMin]
&& [Average of GlucoseReading] <= Bands[BandMax]
&& NOT ( ISBLANK ( [Average of GlucoseReading] ) )
2) This next approach will show the results exactly as you had them in your sample screenshots. It just takes a slight bending of the DAX. I'm using a SUMX here, not because I want to sum anything, but because the "X" version of SUMX basically loops over
every row in the specified table and sums the expression in the second parameter. I have setup the second parameter so that it only returns a single value for the average if it is in the appropriate banding.
Banded Average:=IF (
HASONEVALUE ( Bands[BandName] ),
SUMX(
'Bands',
IF (
NOT ( ISBLANK ( [Average of GlucoseReading] ) )
&& [Average of GlucoseReading] >= MIN ( Bands[BandMin] )
&& [Average of GlucoseReading] <= MIN ( Bands[BandMax] ),
AVERAGE(Readings[GlucoseReading]),
BLANK()
,AVERAGE(Readings[GlucoseReading])
http://darren.gosbell.com - please mark correct answers -
How to avoid duplications making a SUM calculated field
Hi, I'm trying to resolve this problem;
In my dataset (in a custom folder on the administrator) I have a list of tickets (with some attributes), and some of them are duplicated:
For example
Ticket_id Group_id Ticket_date Resource_name Ticket_status
5416 100000401 10/12/2007 7:10:31 am Mr. A 2
5416 100000401 9/1/2008 11:00:44 pm Mr. A 2
57381 100000401 27/12/2007 11:37:11 am Mr. A 2
57381 100000401 15/1/2008 9:33:12 am Mr. A 2
I want this duplication because I need it when I filter the dataset (using the Ticket_date) with two parameters:
Ticket_date between lower_limit_date and upper_limit_date
So, inside the report, regarding the ticket's number, if I take 2 records with the same ticket_id, I have a calculated field where I use the COUNT_DISTINCT and for each couple of tickets the count is always =1; in this way (inside the report) I have the following fields:
Group_id Count_tickects Resource_name
100000401 2 Mr. A This is OK !
Now, if I want to count how many tickets have the status = 2 (it means they are closed), I want to obtain 2 and NOT 4
I tried to use this calculation (Tickets Closed): SUM(CASE WHEN "Tickets Report #7 COMPL".Ticket Status Id = 2 THEN 1 ELSE 0 END)
but I always had the result of 4...and this not correct, because the tickets are only 2...
I also tried to use some analytic function using the OVER PARTITION BY, but I didn't obtain the correct result
In other words I'd like to achieve this:
Group_id Count_tickects Tickets Closed Resource_name
100000401 2 2 Mr.AAny help will be appreciated
AlexHi Rod, thanks for the reply,
I tried this calculation
COUNT_DISTINCT(CASE WHEN "Tickets Report #7 COMPL".Incident Status Id = 2 THEN 1 ELSE 0 END)
but it retrieves 1; it's right, because the result of the CASE statement is always 2 (the Ticket_status is always 2, 4 times), but this is not what I expect.
I'd like to calculate how many tickets are effectively opened (Ticket_status = 2) and this result is *2*, because I have only 2 ticket_id (5416 and 57381); the problem is that inside the data set these two ticket_id's are repeated two times.
I can't use "Hide Duplicate Rows" because this is only a layout solution (behind I have always the duplication); I can't use more than one aggregate function together because I have the error: Nested aggregate functions are not allowed...
To resolve this problem, I think, I have to restrict the records which are processed by the CASE statement; instead of pass to the calculation all four records (twice the ticket_id 5416 and twice the ticket_id 57381) I have to pass only two records (one the ticket_id 5416 and once the ticket_id 57381).....but how....???
Alex -
Copying a Calculated Field Value to another Field in the same List
Hello! I have a calculated field that uses an if statement to determine a score. IE A field called Downtime Score contains this calculate: IF Downtime Minutes =10, 100. (not correct formatting, just basic to get point across)
I simply want to use a workflow to copy the calculated value in Downtime Score (100) to another field called Final Downtime Score.
In the workflow, I current have the following: Set FinalDowntimeScore to CurrentItem:Downtime Score
When I log both to workflow history, they both show 0 in history. Nothing is copying.
The calculated field is a number and I tried both number and text fields for FinalDowntimeScore.
This is within SharePoint 2013 and using SharePoint Designer 2013.
Any help would be appreciated!Ok, I did the same test as you and it failed. I still return a 0 when I should see a 100.
Not sure if this helps but when even though we are using sharepoint designer 2013, we only have "SharePoint 2010 Workflow" available in Platform type when creating workflows.
Could you test again using SharePoint 2010 workflow as your platform type and see if you return the same results?
Thanks! -
Dividing two calculated fields
Hi Folks,
I am able to divide the two calculated fields viz(# Opportunities Created / # Opportunities Won) but I want to display "0.00" when both the numerator and denominator are "0"
The calculation that I am using is
1.0 * (COUNT(DISTINCT CASE WHEN Opportunity."Created Date" <= CURRENT_DATE AND Opportunity."Created Date" >= TIMESTAMPADD(SQL_TSI_DAY, -30, CURRENT_DATE) THEN Opportunity."Opportunity ID" ELSE NULL END) / COUNT(DISTINCT CASE WHEN Opportunity."Current Sales Stage" = 'Closed/Won' AND Opportunity."Modified By Date/Time" <= CURRENT_DATE AND Opportunity."Modified By Date/Time" >= TIMESTAMPADD(SQL_TSI_DAY, -30, CURRENT_DATE) THEN Opportunity."Opportunity ID" ELSE NULL END))
Any suggestions??
Thanks and Regards,
Amit KoulPut a case when statement around it:
case when (DIVISIONS.VAL1/DIVISIONS.VAL2) is null then 0 else DIVISIONS.VAL1/DIVISIONS.VAL2 end
regards
John
http://obiee101.blogspot.com/ -
A calculation field is defined too small when i am relasing the csotingrun
Hi
when i am releasing the standard price the system is showing is dump as
following A calculation field is defined too small.
Runtime Errors BCD_FIELD_OVERFLOW
Except. CX_SY_CONVERSION_OVERFLOW
Date and Time 04.12.2011 10:50:18
Short text
A calculation field is defined too small.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLCKMB" had to be terminated because it ha
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
can any body help me.
thanks
kareemHi srinivas,
thank you very much for ur answer,
i checked that notes and sent me my basis guy.
as he told me note 1103295 cant be implemented in this client as we are in support 700 packages.
can you tell me any other way it can be resolve.
thanks
kareem -
New Calculated field question. Complicated I think.
I have managed to create this table from a MySQL database: http://ppbm5.com/DB-PPBM5.php
The field 'Total' is a calculated field using this SQL query:
$query_Recordset1 = 'SELECT *, `Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`) As Total, `CPU`*`Cores` As Phys_Cores FROM `Personal_data` WHERE 1 ORDER BY (`Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`)), `Date & Time` ASC';
So far, so good, but as you may have noticed, there is a next field called 'Rel. Perf.' which only contains blanks. And that is where my problems start.
The table is sorted by 'Total' and the first record shows these figures and field names that are relevant for my question:
Fields: 'Total' 'Disk I/O' 'MPEG2-DVD' 'H.264-BR' 'MPE On' 'MPE Off'
Values: 131, 67, 21, 37, 6, 64
In addition, I use four 'weight' figures, let's say these are 0.27 , 0.30 , 0.20 and 0.23 denoted as W1, W2, W3, W4.
First step is to calculate four temp values, using a formula like this resulting in T1, T2, T3 and T4:
T1 = W1 x Total /Disk I/O; T2 = W2 x Total/MPEG2-DVD ; T3 = W3 x Total/H.264-BR ; T4 = W4 x Total/(IFNULL(MPE On, MPE Off)
Note that this only applies to the top record and here the SUM(T1, T2, T3, T4) results in 131, equal to the Total.
The result of 100 x SUM(T1, T2, T3, T4)/ Total = 100 should be the 'Rel.Perf.' result for the top record.
Now is gets difficult. Let me call the records R1, R2, R3, ..., Rx. Now, in the previous step we have established that the figure 100 should into R1.
For R2 the result of the 'Rel.Perf.' is 100 x SUM(T1 x Disk I/O(2), T2 x MPEG2-DVD(2), T3 x (H.264-BR(2), T4 x (IFNULL(MPE on, MPE Off)))/ Total(2)
For R3 the result of the 'Rel.Perf.' is 100 x SUM(T1 x Disk I/O(3), T2 x MPEG2-DVD(3), T3 x (H.264-BR(3), T4 x (IFNULL(MPE on, MPE Off)))/ Total(3)
etcetera for all the rest of the records in the table.
A complicating factor is that the reference point of the top machine should remain fixed at 100, but when doing queries, the top machine may not be in the query results, but all the query results for the Rel.Perf. should be derived from these scores. Life would be infinitely easier if one would be certain that the top machine is fixed, but that is not the case.
Sorry to make this such a long and complicated post, but for those who have struggled through this long message, if you have any suggestions on how to make this work, I would appreciate it.
Thanks in advance.
Harm, while non is intended.
PS. I have been trying to generate a SQL query, using the following code:
$query_Recordset1 = 'SELECT *, FORMAT(`Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`),0) As Total, FORMAT((54.661*`Disk I/O`+161.25*`MPEG2-DVD`+71.66666*`H264-BR`+645*IFNULL(`MPE On`,`MPE Off`))/129,1) As RPI,`CPU`*`Cores` As Phys_Cores FROM `Personal_data` WHERE 1 ORDER BY 54.661*`Disk I/O`+161.25*`MPEG2-DVD`+71.66666*`H264-BR`+645*IFNULL(`MPE On`,`MPE Off`), `Disk I/O`+`MPEG2-DVD`+`H264-BR`+IFNULL(`MPE On`,`MPE Off`) ASC';
For static work it is OK, but not when a new top performer submits his data.Hi William,
Per my understanding that you want to count the number of the value in the field wait which is smaller then 15, right?
I have tested on my local environment and that you can add the calculated field (Count) using the expression as below:
=IIF(Fields!wait.Value<15,1,0)
Insert an outside group row and then get the total count by using below expression:
=SUM(Fields!Count.Value)
Preview you will get the result like below:
If your problem stil exists, please try to provide some sample data and the exprect count result you want.
Any problem, please feel free to ask.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support -
Problem with Math In Calculated Fields
I am calculating a group incident rate for data returned from
a query. The formula is Number of cases multiplied by 200000
divided by number of hours worked. Cases in my report is the
calculated field: calc.CaseSum (the sum of cases for the group)
Hours is calc.SumHours (the sum of hours for the group). The actual
values for these variables (for the first group are 48 and 29427171
respectively. When I create the following calculated field called
rate using the formula: (calc.CaseSum * 200000) / calc.SumHours,
Cold Fusion Generates a Runtime Error:
Invalid ColdFusion expression in report. If the expression is
a string, ensure that it is within quotes. Error: (calc.CaseSum *
200000) / calc.SumHours is not a valid ColdFusion expression.
If I use the constant value "29427171" as the divisor, the
report works albeit only for the first group. Any ideas; is this a
bug, or am I misusing the product?
Addition: I forgot to mention I am using CF8. Also this
formula worked fine as a Report Total before I introduced grouping
and modified the calculated fields to reset on the change of a
group.Sorry, I've been on another project for awhile. This problem
will certainly be a "show stopper" for me if I cannot resolve it.
As I mentioned in my original post, I used a constant in the
formula in lieu of the variable and the calculation worked. This
would suggest that CF does not have a problem with a large number.
In spite of that reasoning, I tried Tony's suggested (thanks
by the way!) with the identical outcome, only difference is the new
formula is displayed in the error message.
Tony, you also suggested that I set the variables using
CFSET... How would I do this within the report writer environment.
I had tried a similar approach: to perform half the calculation
i.e. that within the parenthesis, and assign that value to a
separate "calculated field: and then perform the rest of the
calculation on that variable with the same outcome.
I think that I may be dealing with a CF bug here, I'd like to
find a workaround... I've noticed that CF8 has a new patch, perhaps
after I apply it, I may be able to get this thing to work. I'm on
another project right now so it will be a few days before I can
test this theory, I report the result.
Should this fail, and no one can come up with a workaround, I
will report this to Adobe. -
Calculation Field to be mapped to different data object's column name in Oracle BAM 12c
Hi,
I am having a challenge to enable drill down to 2nd level report by passing calculation field as parameter.
As an alternative, I am thinking to point calculation field to another data object’s column name and generate report so that I would be able to pass that as parameter to drilling report view.
Is there any way to map calculation field to different Data object’s column name? Thanks in advance.
Regards
Amik Basu1. Yes, you can.
SQL> create table ÜÝÞ( ßàá number(10));
Table created.
SQL> insert into ÜÝÞ values (10);
1 row created.1.1 and 1.2 and 2. You can choose UTF as your default character set. It allows the user of non-English characters in VARCHAR columns in your whole database. It is not per tablespace.
SQL> create table ÜÝÞ( ßàá varchar2(100));
Table created.
SQL> insert into ÜÝÞ values ('âãäçìé');
1 row created. -
How to change the column value which is coming from DO by a calculated field?
Hi all,
I want to change a column value based on my calculated field value. I have a column which is coming from DO which is based on External Data Source. I have a calculated field in my report. When there is any change in the calculated field then the column which is coming from DO needs to be changed. It means the DO needs to get updated when there is a change in the calculated field. Or like if the calculated field meets some condition then I need to change/update the same in the DO. This has to be done on the fly. the report should not submitted for this. when there is a change in the calculated column the DO column needs to get updated.
Thanks,
Venky.Ok, I've been a customer for very many years, I'm on a fixed retirement
income. I need to reduce my bills, my contract ends in Dec. I will be
pursuing other options unless I can get some concessions from Verizon. My
future son-in-law was given this loyalty plan, so I know this is a
reasonable request. My phone number is (removed) acct number
(removed)
>> Personal information removed to comply with the Verizon Wireless Terms of Service <<
Edited by: Verizon Moderator -
Hi,
I am trying to add a calculated field in my power pivot table to show the percentage on the basis of 2 columns, please let me know why this is not appearing and how can i fix it.
Any other way if i can add a calculated field in the pivot table will be very helpful.
Thanks
AmanThanks KR for the response,
Yes I loaded multiple tables in the data model and using PoewrPivot ,
i have a rating column, in that i have 0,1,2,3,4,5 rating numbers and we call it "Total expected occurrence",
a single person can get same rating multiple times, if a person is getting >=4 rating no. we call it "Occurrence >= 4". now i have to find out the total
count of "Occurrence >=4" for a particular person from "Total expected occurrence" column,
once will get the net "Occurrence >=4" for everyone, it should divide
"Occurrence >=4"/ "Total expected occurrence" to take out the percentage of rating 4 for a particular person
Best Wishes,
Aman verma -
Calculated fields in Sharepoint list view
Hi,
I have to add a calculated field with formula as
if the difference between 2 date fields is 0 then i have to add todays date-modifed date.
how to achieve this in sharepoint list view/column ?
ArunaHi Aruna,
SharePoint doesn't allow you to use the[Today] function
in a calculated column, but there are other work around for this.Please find below link for this.
http://abstractspaces.wordpress.com/2008/05/19/use-today-and-me-in-calculated-column/
Regards
Soni K -
How to add a calculated field in a list definition (schema.xml)?
Hello,
I'm currently trying to add a calculated field to a list definition (schema.xml).
I have put the following code at the end of the schema.xml for the list I want to create. But when I deploy and activate the feature for the list, it doesn't appear in the list field.
<Field ID="{EE20EC4B-4216-4259-A84F-C478CE42B70F}" Name="EC_EventsMgmt_CalculatedTime" StaticName="EC_EventsMgmt_CalculatedTime" Group="EC_EventsMgmt" Type="Calculated" DisplayName="Calculated Time" Required="TRUE" Hidden="FALSE" ReadOnly="FALSE" Format="DateTime"> <Formula>=DATE(2009,1,1)+TIME(EC_EventsMgmt_ScheduleHour,EC_EventsMgmt_ScheduleMinute,0)</Formula> <FieldRefs> <FieldRef Name="EC_EventsMgmt_ScheduleHour"/> <FieldRef Name="EC_EventsMgmt_ScheduleMinute"/> </FieldRefs> </Field>
Could you please give me some help and explain me why it is not working?
Thanks a lot.Hi there.
If I understand correctly, you create this list within the same feature?
If so, the list isn't available during the propagation, and therefore the calculated field can't be added.
If this is the case, then you could work around this by adding a feature activated event handler to your feature and add the calculated field programmatically in that event.
Hope this helps.
Regards,
Magnus
My blog: InsomniacGeek.com -
SSRS Using WHERE in a calculated field
Hi All,
Im having a real issue with something that seems like it should be easier than it is.
In my tablix I want to add the expression =Sum(Fields!ID20.Value)-Sum(Fields!ID20.Value) BUT I need to determine if another criteria is met.
EG - I want =Sum(Fields!ID20.Value WHERE [InOut]="In")-Sum(Fields!ID20.Value WHERE [InOut]="Out")
Many Thanks for any helpHi LB79,
In Reporting Services, Aggregate functions cannot be used in calculated field expressions, since the data for calculated fields will be based on individual rows not on group basis. As a workaround, we can directly add the expression to a textbox of the tablix
instead of using that calculated field. For detail information, please refer to the following steps:
Right click the text box which you want to insert the calculated field, then click Expression.
In the Expression text box, refer to the following expression:
=sum(iif(Fields!InOut.Value ="In", Fields!ID20.Value,0),"DataSet_name")-sum(iif(Fields!InOut.Value ="Out", Fields!ID20.Value,0),"DataSet_name")
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
Does Captivate 6 work with IE 11 and Windows 8.1?
I have a situation where I created a Captivate presentation in Captive 6. The users are using IE 11 and Windows 7 and 8.1. The presentation will not load. Is there a problem with Captivate woring with those OSs and browser? Thanks!
-
Need help with a simple basketball game.
Hi im new here and I need help with making this simple basketball game. Im trying to recreate this game from this video. Im not sure if he is using as2 or as3 Or if anyone could help me make a game like this or direct me to a link on how to do it It
-
How to get Dowload servlet logs (JNLP logs)
I need to get all the runtime exceptions and logs while downloading the application data from server site. How can I do that. I tried by writing the below code in the web.xml but it doesn't work - <servlet> <servlet-name>JnlpDownloadServlet</servlet-
-
Every song in itunes library appears twice. how do i delete the dups
in my itunes library every song shows up twice. how do I delete the duplicates?
-
Noticed an issue with touch interface when compiling using AIR SDK 3.8.0.1430 (latest SDK and testing using latest AIR Windows player-both 3.8.0.1430). Testing on Windows 8 Pro desktop with full multitouch screen. Touch fails to work using SWF compi