TCL script help needed on Nexus7000 !
Does anyone know how to create a TCL script on Nexus7000 switch for following scenario ? Need urgent help here.. :-
Here is what I am trying to do :-
1. Whenever following log on "show log log" prints out :-
testnexus7000 %PIXM-2-PIXM_SYSLOG_MESSAGE_TYPE_CRIT:
2. Print out the output of show system internal pixm errors
And look for following line :-
[102] pixm_send_msg_mcast(1208): MTS Send to LC X failed >> where X is 0 based
and this error can occur multiple times for different LCs too.
4. Reload line card (s) X and syslog " task done"
Regards
Vijaya
Hi,
Vijaya I found same post on support cisco forums So people helped someone in same question !!!!!!
Please read it ....
https://supportforums.cisco.com/thread/2128886
Yes plus if u can help me in ......Cisco ASA same security problem than that will be good for me .....I will contact u and will be great help for me if u help
Hope that link help u .....
Bye,
Similar Messages
-
EEM / Tcl Script Help Please
Hello Community,
I have been evaluating a Tcl Script posted here sometime ago, designed to help monitor track interfaces and routes, see attached.
I believe I have applied the configurations correctly, however when I test the script by shutting down interfaces nothing happens.
I'm sure its something very simple that I'm missing.
I wonder if someone could take a look at the configs and let me know what I'm doing wrong. I have also attached a diagram.
Cheers
CarltonJoseph,
I did read again and I got it to work :-)
Cheers
On a slightly different topic, is it possible to 'track' a static ip address?
For example, I have the following tracking configured:
track 1 ip route 0.0.0.0 0.0.0.0 reachability
track 2 interface FastEthernet0/0 ip routing
track 3 interface FastEthernet0/1 ip routing
track 4 ip route 180.80.8.4 255.255.255.255 reachability
track 5 ip route 170.70.7.4 255.255.255.255 reachability
R3#show track brie
Track Object Parameter Value
1 ip route 0.0.0.0/0 reachability Up (static)
2 interface FastEthernet0/0 ip routing Up
3 interface FastEthernet0/1 ip routing Up
4 ip route 180.80.8.4/32 reachability Down (no route)
5 ip route 170.70.7.4/32 reachability Down (no route)
However, you will see that track 4 and 5 are down. This is because, although I can ping 180.80.8.4 and 170.70.7.4 the actual ip addresses don't appear in the routing table:
Gateway of last resort is 0.0.0.0 to network 0.0.0.0
170.70.0.0/24 is subnetted, 1 subnets
C 170.70.7.0 is directly connected, FastEthernet0/0
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, FastEthernet1/0
180.80.0.0/24 is subnetted, 1 subnets
C 180.80.8.0 is directly connected, FastEthernet0/1
150.50.0.0/24 is subnetted, 1 subnets
C 150.50.5.0 is directly connected, Ethernet2/0
S* 0.0.0.0/0 is directly connected, FastEthernet1/0
R3#
Therefore, is there way of creating a track for /32 ip addresses?
I hope that makes sense.
Cheers -
Report Script Help Needed - Data Extract
Hi,
I have a cube with 11 dims: Account, Period, Resource, Facility, SSSS, CCCC, Activity, Years, Version, Scenario, Charges
I need a report script that will extract data for a certain year and scenario only. I have not written a report script in a long time and have the following thus far. However it's not extracting data that I know exists. Can anyone help? Thanks is advance. This runs but I just get a blank screen or file....
//ESS_LOCALE English_UnitedStates.Latin1@Binary
// This report script extracts data from cube
"FY11"
{DECIMAL 4}
{NAMEWIDTH 25}
{SUPCOMMAS}
{SUPBRACKETS}
{SUPPAGEHEADING}
{NOINDENTGEN}
{SUPMISSINGROWS}
{SUPZEROROWS}
{TABDELIMIT}
{SUPFEED}
{ROWREPEAT}
"JAN"
"FEB"
"MAR"
//"APR"
//"MAY"
//"JUN"
//"JUL"
//"AUG"
//"SEP"
//"OCT"
//"NOV"
//"DEC"
"BUDGET"
// This is the members of the CCCC dimension to extract
// This is the members or the ACCOUNT dimension to extract
!Hello -
You can try/modify the code below and see if this works -
//ESS_LOCALE English_UnitedStates.Latin1@Binary
{ SUPMISSINGROWS }
{ SUPZEROROWS }
{ SUPFEED, SUPBRACKETS, SUPCOMMAS }
{ NOINDENTGEN }
{ DECIMAL 4}
{ NAMEWIDTH 30 }
{ ROWREPEAT }
{ TABDELIMIT }
{MISSINGTEXT "-" }
<PAGE ("Scenario", "Resource", "Facility" ,"SSSS", "Activity", "Version", "Charges")
"Budget"
"Resource"
"Facility"
"SSSS"
"Activity"
"Version"
"Charges"
<COLUMN ("Year","Period")
"FY11"
"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
<ROW ("Account", "CCCC")
<LINK (<DESCENDANTS ("ACCOUNT") AND <LEV("ACCOUNT",0))
<LINK (<DESCENDANTS ("RT9_CCCC") AND <LEV("CCCC",0))
Here you may want to change teh combination in the Page dimensions for eg -
I know for Scenario you want Budget
But for Version should it be "Version" or may be "Working" Or "Final" or any other version dimension member ...?
Same way modify the dimension memebres for other dimensions.
Regards
Edited by: Rosi on Aug 24, 2009 10:01 AM
Edited by: Rosi on Aug 24, 2009 10:02 AM -
UCCX Conferencing in third call? Scripting help needed
All,
I've got a customer requirement where they want to be able to place a call into the contact centre, give the contact centre the digits to dial and have the contact centre place the call on their behalf. I've got no trouble with that bit.
The next requirement is that the call placed is recorded, even if the calls in are not from cisco phones (i.e. mobiles). We have a redbox recorder that does the recording and in order for it to commence a recording session, it needs to see a setup message through CM to check that it's an extension that is to be recorded.
For example, I use an IP phone that IS being monitored to make a call. The Redbox sees the setup and will record the call flow.
I use an IP phone that is NOT being monitored to make a call. The Redbox sees the setup and will not record the call.
In order to get calls recorded from the contact centre, I'm thinking of conferencing in a third phone that Redbox is set to record and have it auto answer on silent, but I can't figure out how to get the three calls conferenced together to keep the call flow recorded.
Any thoughts on how to achieve this? Or has anyone else out there used another method?
All help greatly appreciated!
LH
#15331There is no mechanism within CCX that allows you to initiate a conference or join two contacts together. Your only options will be to transfer the triggerin
g contact to another destination with a Call Redirect or Call Consult Transfer. If you create a second contact and use a Place Call step, you can interact with both contacts in the script but never join them together. -
Hi,
I have not written one in years and am having trouble with a fairly simple one (I think). Was wondering if you could take a look. Anyways we have 11 dimensions which may make this impossible due to performance. I basically need a report script to perform a data extract. Data requirements for each dimension would be:
Scenario: Budget
Version: Final
CCCC: Tot_CCCC (Rollup)
SCCC: Tot_SCCC (Rollup)
Charge_Type: Charge_Type_Total (Rollup)
Resource: NU_RESC (Rollup)
SAU_CAU_Facility: Zero level members of "NU_Consolidated"
Account: Zero level members of "TOTCO_FERC"
Activity: Zero level members of "NU_Actv"
Years: Children of "YEARS"
Periods: Jan to Dec only
Report format would suppress the PAGE thus Budget and Final would not appear.
Was also hoping to somehow suppress CCCC, SCCC, Charge_Type and Resource(Not sure if possible).
Thus format would look something like this tab delimited:
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
SAU_CAU_Facility Account Activity Year 100 200 100 100 010 100 200 300 100 100 100 100
Here is what I have so far. I have not been able to get it to return any results even though I have loaded one row of fake data. Does anything jump out at you as to what I'm doing wrong? Appreciate any help you may have as I'm really stuck as it's been years since I have tried this.
//ESS_LOCALE English_UnitedStates.Latin1@Binary
// This report script extracts data from NUMaster
<SUPSHARE
{DECIMAL 4}
{NAMEWIDTH 25}
{SUPCOMMAS}
{SUPBRACKETS}
{SUPPAGEHEADING}
{NOINDENTGEN}
{SUPMISSINGROWS}
{SUPZEROROWS}
{TABDELIMIT}
{SUPFEED}
{ROWREPEAT}
<PAGE ("SCENARIO", "VERSION")
"BUDGET" "FINAL"
<COLUMN ("PERIOD")
"JAN"
"FEB"
"MAR"
"APR"
"MAY"
"JUN"
"JUL"
"AUG"
"SEP"
"OCT"
"NOV"
"DEC"
<ROW ("RESOURCE_LOCATION", "SCCC", "CCCC", "VERSION", "CHARGE_TYPE", "SCENARIO", "SAU_CAU_FACILITY", "ACCOUNT", "ACTIVITY", "YEARS")
<DIMBOTTOM "SAU_CAU_Facility"
<DIMBOTTOM "ACCOUNT"
<DIMBOTTOM "ACTIVITY"
<DIMBOTTOM "YEARS"
"TOT_CCCC"
"TOT_SCCC"
"CHARGE_TYPE_TOTAL"
"NU_RESC"
// Limits the members within the specified dimensions to the correct zero level members of the specified rollup
<LINK (<DESCENDANTS ("NU_CONSOLIDATED") AND <LEV("SAU_CAU_Facility",0))
<LINK (<DESCENDANTS ("TOTCO_FERC") AND <LEV("ACCOUNT",0))
<LINK (<DESCENDANTS ("NU_Actv") AND <LEV("ACTIVITY",0))
Thanks,
SAmOne thing that may help - it looks like you're using both <DIMBOTTOM and <LINK for three of your dimensions.
<DIMBOTTOM "SAU_CAU_Facility"
<DIMBOTTOM "ACCOUNT"
<DIMBOTTOM "ACTIVITY"
You should just need the <LINK and not the <DIMBOTTOM. <DIMBOTTOM's can really kill report script performance.
Whenever I do these, I try to start small, and then open the report script up to more and more members to see what's affecting performance. I'd start with one year, one facility, one activity, one account, etc. Then slowly add in the full member specifications you want.
Hope this helps,
- Jake -
Tcl script help -- include interface description in status message
Hi there,
I'm trying to create a script that will email me when an interface goes down, and include the interface description in the email. I've found a script that successfully emails me when the status changes, and I found another script that will parse for the interface description, but I can't seem to get them to work together. I've mashed them up together into the below script:
# EEM policy that will monitor SYSLOG for Interface status changes.
# If UPDOWN message is detected, send an email with interface information.
### The following EEM environment variables are used:
### _email_server
### - A Simple Mail Transfer Protocol (SMTP)
### mail server used to send e-mail.
### Example: _email_server mailserver.example.com
# Register for a Syslog event. Event Detector: Syslog
# Match pattern for Interface Status change
::cisco::eem::event_register_syslog pattern "%LINK-3-UPDOWN"
# NAMESPACE IMPORT
namespace import ::cisco::eem::*
namespace import ::cisco::lib::*
# Set array for event_reqinfo
# Array is populated with additional event information
array set Syslog_info [event_reqinfo]
set msg $Syslog_info(msg)
# Set routername variable for use later
set routername [info hostname]
# Parse output for interface name
if { ! [regexp {: ([^:]+)$} $msg -> info] } {
action_syslog msg "Failed to parse syslog message"
regexp {Line protocol on Interface ([a-zA-Z0-9]+)} $info -> interface
# ------------------- cli open -------------------
if [catch {cli_open} result] {
error $result $errorInfo
} else {
array set cli $result
# Go into Enable mode
if [catch {cli_exec $cli(fd) "enable"} result] {
error $result $errorInfo
#Find interface description
if [catch {cli_exec $cli(fd) "show interface $interface | inc Description" } description] {
error $description $errorInfo
#--------------------- cli close ------------------------
cli_close $cli(fd) $cli(tty_id)
set time_now [clock seconds]
set time_now [clock format $time_now -format "%T %Z %a %b %d %Y"]
# EMAIL MESSAGE
# This manually creates a text message with specific format to be used by the
# smtp_send_email command later to send an email alert.
# Ensure the following are configured:
# ip domain-name <domain.com>
# If a hostname is used for mailservername, ensure the following are configured:
# ip name-server <dns-server>
# ip domain-lookup
# NOTE: Change environment variable _email_server to your SMTP server
# The email below references the following variables:
# $routername: hostname of device
# $time_now: time when specific Syslog message was detected
# $msg: Syslog message received
set email_message "Mailservername: $_email_server
From: [email protected]
To: $_email_to
Cc:
Subject: EEM: Critical interface status change on $routername
This email is generated by EEM.
$time_now
$msg
$description
# Send email message
if {[catch {smtp_send_email $email_message} result]} {
set result "Email send failed"
} else {
set result "Email Sent"
# Debug message to check email transmission status
action_syslog msg "$result"
When I trigger an interface UPDOWN message, I'm getting the following error on the command line:
Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: can't read "interface": no such variable
Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: while executing
Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "cli_exec $cli(fd) "show interface $interface | inc Description" "
Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: invoked from within
Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "$slave eval $Contents"
Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: (procedure "eval_script" line 7)
Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: invoked from within
Oct 17 23:56:19.355 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "eval_script slave $scriptname"
Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: invoked from within
Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "if {$security_level == 1} { #untrusted script
Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: interp create -safe slave
Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: interp share {} stdin slave
Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: interp share {} stdout slave
Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: ..."
Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: (file "tmpsys:/lib/tcl/base.tcl" line 50)
Oct 17 23:56:19.359 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: Tcl policy execute failed: can't read "interface": no such variable
Can anyone help me figure out where I'm going wrong?
Thanks in advance,
BrandonHi Dan,
Thanks for the reply. I've made the changes you suggested but I'm still getting the error:
Oct 18 21:41:50.446 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: can't read "interface": no such variable
Oct 18 21:41:50.446 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: while executing
Oct 18 21:41:50.446 HKT: %HA_EM-6-LOG: CriticalLinkStatus.tcl: "cli_exec $cli(fd) "show int $interface | inc Description""
Is there any additional debugging I could place in my script? Normally I would try and print the variables after each line to see what's being populated, but I'm not sure how I can test that from within EEM.
--Brandon -
Serious, Pro level Illustrator Scripting help needed
I need a pretty robust script and I am willing to pay for it. I am sorry if soliciting like that is a against forum rules, I will find out if my post gets, deleted/locked. I am just serious about this need for a script.
I am not sure if this is possible in Illustrator, but I really hope so. I need a script that will read the information from the x,y position and width x height in the Transform Palette of any selected object (or objects would be even better), including all the the different reference point values, and then write discrete user selected info; based on a easy to use panel of check marks, radio buttons or whatever, to a text field a set number of pixel offset from the upper left corner of the object bounds.
I would be happy to explain further if this is the correct place for this type of discussion.
If this is not the right place, my humblest apologies but perhaps someone could turn me on to a better place?
Thanks in advance for any help!This does not sound like a big task.
Here is a script I use every day.
displays the Width and Height below each selected Item or group.
have a go and let me know if this is kinda what you are thinking.
from there we can work out how you want everything displayed
var doc = app.activeDocument;
var sel = doc.selection;
var TOmm = 2.83466796875;
Dim(sel);
function Dim(objs) {
for (var i=objs.length-1;i>=0;i--) { // loop through your collection of objects
var bounds = objs[i].visibleBounds; // Get visibal bounds, which are only visable bounds in some cases...
var b1 = bounds[0] /TOmm;
var b2 = bounds[1] /TOmm;
var b3 = bounds[2] /TOmm;
var b4 = bounds[3] /TOmm;
var W = Math.abs(b3-b1).toFixed(1);
var H = Math.abs(b4-b2).toFixed(1);
var txt = doc.textFrames.add(); // Create the text frame
txt.contents = "Size: "+ H + " x " +W + " mm W"; // Adds contents to frame
txt.position = [objs[i].left,objs[i].top - objs[i].height - 20]; // Positions the frame
This example ignores clipping paths and measures everything, including what is clipped. -
Custom Calculation Script Help Needed
I need to make a script that Sums a column of fields based on whether or not information found in another column of fields is the same or specific text. Please see below screenshot of what I would like it to do.
I would like a Sum of all Amounts that have the Code A...You can use this script as the custom calculation script of "SumOfA":
var total = 0;
for (var i=0; i<=2; i++) {
if (this.getField("p1TC."+i).value=="Code A")
total+=Number(this.getField("p1RecIn."+i).value);
event.value = total;
You can easily adjust it for the other field as well. -
Scripting help needed... please
Help,
I know this is a fairly basic scripting question, but for some stupid reason I just can't seem to get it.
I am creating a DVD that has 2 different menus.
There are only one set of tracks, but 2 different menus. What I want is something that tells the track to return to menu 1 if it played from menu 1 or to go to menu 2 if it played from menu 2
Help please.
ThanksHi
I think this is what you are looking for: * Multiple Menus with GPRM based button jumps * (Thanks Hal!)
Hope that helps !
Alberto -
Hi,
I have a requirement in SAP E-Sourcing as follows to achieve the functionality of hiding/displaying a field based on another field value selection.
Based on my field value FIELDA, I need to display or hide FIELDB/FIELDC.
1. FIELDA -- Value List (ValueA, ValueB, ValueC)
2. FIELDB -- Text Field
3. FIELDC -- Text Field
So,my requirement is
if (FIELDA = "ValueA")
FIELDB = Hide
FIELDC = Display
else
FIELDB = Display
FIELDC = Hide
Kindly direct me how to achieve this functionality using "Script Definition"
Thanks,
PrabhuHi Prabhu,
To achieve your requirement, you cannot write a script, as there is no API for dynamic UI.
Your requirement is very much possible by Page Customization.
Create page customization if already not existing for the object where you want to do this.
In that add the field as below
Field ID : technical name of the field which needs to be hidden (FieldB)
Property : Hidden
Value: Yes
Dimension on parent : NO
Dimension Field: Conditional Field (FieldA)
Dimension Type : Value list Value (in ur case)
Dimension Value: ValueA
In this way you have to configure all possible combinations required.
Hope you get this.
Thanks,
Vaibhav Modi -
SAP script help needed ..... urgent !!!
Hi friends,
I`ve assigned the script name and driver program in NACE tcode for ME21N transaction.
When I print preview from ME21N tcode and keep script debugging active it goes into debugging mode ...Here it shows script name same as what has been assigned in NACE but the contents which are being debugged are different than the actual script contents .. means the code which we can see while debugging the script are not matching with the code of the same named script in SE71.
Can anybody help me out regarding this issue .. ?
thanks .If your assignment is correct in NACE, and still if you face the problem.
1. As we know that scripts are language dependents, so please check while debugging in header of the screen ie., beside to layout set name you will find the language.
2. So, based on the language check your content.
Thanks -
I think I'm posting this in the correct location.
Here's what I have. I'm trying to get past the issue with Adobe Reader not working under network accounts. The problem is that when a network user logs in and tries to launch Reader it crashes almost immediately. I've found that if I move the 9.0_ppc directory to the /Users/Shared directory of the local Mac and then create a symbolic link to it in the ~/Library/Application Support/Adobe/Acrobat directory that it works just fine under the network accounts. Problem is there are too many accounts to do this to feasibly.
So what I'm trying to figure out how to do is create a login script that will apply to all users. This script should automatically delete the /Library/Application Support/Adobe/Acrobat/9.0_ppc directory and replace it with a symbolic link to the /Users/Shared/9.0_ppc directory.
Seems like this should be a relatively easy task but has proven to be quite challenging.
My server is running OS X Server 10.5.8 and my workstations are running 10.4.11The magic word you need:
loginhook
This is a place where you can attach a script as the user logs in. You are still the root user for the duration of the script, but immediately after the script ends you become the logging-in user.
HT2420- Mac OS X: Creating a login hook
One "famous" loginhook for moving user caches off the Server and onto the workstation's Hard drive is described in this mailing list item. If you lift it, note that there is a space missing in one line of code, but i think a later reader comments on that.
Re: Network home folders slow-down (redirecting cache?) -
QuickTime - Save Export Settings - script help needed
Currently I am using Panther 10.3.9 - with QT PRO 7.02 - ( I do not want to
upgrade to Tiger at this time unfortunately)...
* MY GOAL: to be able to save export preferences in QuickTime pro.
Since QuickTime does not seem to be able to save export presets... I
downloaded the the script collection from
From: Scriptable Applications: Quicktime Player
Location: http://www.apple.com/applescript/quicktime/
and created export settings and tried ....
Save Export Settings.scpt
... but the file that got saved will not open in QT PRO - OSX and wants to
open something from old os9....
what do I do?= = = (see scripts below)
* here is my basic workflow ...
- load a QuickTime movie
- adjust the QuickTime movie export settings
- save a test copy ( validating the settings)
- run the "save export settings.scpt" with name "set1test"
Then
- open and run the "Export QuickTime movie.scpt" with the name " test movie"
- run the new test movie - and when I check info - it does NOT reflect the desired settings...
= = =
One issue is - this line...
export movie 1 to new_file as QuickTime movie using settings "set1test"
... It doesn't seem to care what the settings file name is - and if I change that name to a nonexistent name - it still exports the movie without an error.... Therefore it leads me to believe that it's not using it to begin with....
- another issue is that the settings file "set1test" says it is the kind = "QuickTime settings document" - however it has a blank icon in the Finder - and there does not seem to be any way to open the file with QuickTime 7.02 - and it can to open something classic mode when I double click on it.
= = = the Save settings script...
tell application "QuickTime Player"
activate
try
if not (exists movie 1) then error "No movies are open."
stop every movie
set the target_file to choose file name with prompt "name & location for the QT settings file:"
save export settings movie 1 for QuickTime movie to target_file with replacing
end try
end tell
=== the Export QuickTime movie.scpt
tell application "QuickTime Player"
activate
try
if not (exists movie 1) then error "No movies are open."
stop every movie
set the movie_name to "mytest.mov"
if (can export movie 1 as QuickTime movie) is true then
set the new_file to ¬
choose file name with prompt "Enter a name:" default name movie_name
export movie 1 to new_file as QuickTime movie using settings "set1test"
end if
end try
end tell -
Lightbox script help needed?
edit: I couldn't get it to work right in FF, so I decided to
go back to just having the images open in their own windowsI deleted some of the images and tables and that helped bring
the image a little closer to the top, but still it's not right. For
some reason Firefox doesn't want to display it like IE7 will.
interesting, anyone know why or have some suggestions on how to
correct this? -
T-SQL script help needed on creating a distribution.
Hello Team -
I'm new to T-SQL.
I have a set of sales reps and have accounts assigned to them. I want to be able to take out only those accounts for each
sales rep whose REVMIX won't exceed more than 10% (summing up the total revmix and capping it to <=10%). Not sure how to get to it.
Kindly help. Below is how the data looks like.
SALES REP
ACCOUNT_ID
REVENUE
TOTALREVENUE
REVMIX
23626
123456791
100
$44,100
0.2%
23626
123456793
300
$44,100
0.7%
23626
123456795
500
$44,100
1.1%
23626
123456797
700
$44,100
1.6%
23626
123456799
900
$44,100
2.0%
23626
123456801
1100
$44,100
2.5%
23626
123456803
1300
$44,100
2.9%
23626
123456805
1500
$44,100
3.4%
23626
123456807
1700
$44,100
3.9%
23626
123456809
1900
$44,100
4.3%
23626
123456811
2100
$44,100
4.8%
23626
123456813
2300
$44,100
5.2%
23626
123456815
2500
$44,100
5.7%
23626
123456817
2700
$44,100
6.1%
23626
123456819
2900
$44,100
6.6%
23626
123456821
3100
$44,100
7.0%
23626
123456823
3300
$44,100
7.5%
23626
123456825
3500
$44,100
7.9%
23626
123456827
3700
$44,100
8.4%
23626
123456829
3900
$44,100
8.84%
23626
123456831
4100
$44,100
9.30%
236267
123456802
4300
167500
2.57%
236267
123456814
4500
167500
2.69%
236267
123456826
4700
167500
2.81%
236267
123456838
4900
167500
2.93%
236267
123456850
5100
167500
3.04%
236267
123456862
5300
167500
3.16%
236267
123456874
5500
167500
3.28%
236267
123456886
5700
167500
3.40%
236267
123456898
5900
167500
3.52%
236267
123456910
6100
167500
3.64%
236267
123456922
6300
167500
3.76%
236267
123456934
6500
167500
3.88%
236267
123456946
6700
167500
4.00%
236267
123456958
6900
167500
4.12%
236267
123456970
7100
167500
4.24%
236267
123456982
7300
167500
4.36%
236267
123456994
7500
167500
4.48%
236267
123457006
7700
167500
4.60%
236267
123457018
7900
167500
4.72%
236267
123457030
8100
167500
4.84%
236267
123457042
8300
167500
4.96%
236267
123457054
8500
167500
5.07%
236267
123457066
8700
167500
5.19%
236267
123457078
8900
167500
5.31%
236267
123457090
9100
167500
5.43%
236268
123457102
9300
136500
6.81%
236268
123457114
9500
136500
6.96%
236268
123457126
9700
136500
7.11%
236268
123457138
9900
136500
7.25%
236268
123457150
10100
136500
7.40%
236268
123457162
10300
136500
7.55%
236268
123457174
10500
136500
7.69%
236268
123457186
10700
136500
7.84%
236268
123457198
10900
136500
7.99%
236268
123457210
11100
136500
8.13%
236268
123457222
11300
136500
8.28%
236268
123457234
11500
136500
8.42%
236268
123457246
11700
136500
8.57%This is close to a live data. There are about 23 rows here from the table. Sum(REVENUE) for the 10 rows would add up to 2380114.397. I will get 10% MIX if I divide it with RUNNINGTOTAL_REVENUE. For some reason when
I'm applying where condition it's not returning those first 10 rows. Not sure what the problem is. :(
SALESREP
ACCOUNT_ID
REVENUE
RUNNINGTOTAL_REVENUE
MIX
236300
ACCOUNT1
17917.83
23451885.59
0%
236300
ACCOUNT2
67402.07
23451885.59
0%
236300
ACCOUNT3
69576.646
23451885.59
0%
236300
ACCOUNT4
82828.84
23451885.59
0%
236300
ACCOUNT5
130955.866
23451885.59
1%
236300
ACCOUNT6
153865.04
23451885.59
1%
236300
ACCOUNT7
316329.34
23451885.59
1%
236300
ACCOUNT8
476030
23451885.59
2%
236300
ACCOUNT9
483660.01
23451885.59
2%
236300
ACCOUNT10
581548.755
23451885.59
2%
236300
ACCOUNT11
669007.05
23451885.59
3%
236300
ACCOUNT12
683942.12
23451885.59
3%
236300
ACCOUNT13
748481.98
23451885.59
3%
236300
ACCOUNT14
878047.8
23451885.59
4%
236300
ACCOUNT15
1127457.05
23451885.59
5%
236300
ACCOUNT16
1221103.91
23451885.59
5%
236300
ACCOUNT17
1422627.56
23451885.59
6%
236300
ACCOUNT18
1492686.19
23451885.59
6%
236300
ACCOUNT19
1698136.33
23451885.59
7%
236300
ACCOUNT20
2536279.246
23451885.59
11%
236300
ACCOUNT21
2618973.05
23451885.59
11%
236300
ACCOUNT22
2860847.283
23451885.59
12%
236300
ACCOUNT23
3114181.627
23451885.59
13%
Maybe you are looking for
-
How can I reset the ipod with windows Vista?
-
i keep getting an error message ''dbghelp.dll is missing. please reinstall itunes'' did that 3 times and same results. i can't sync my iphone and i can't open itunes how do i resolve this issue?
-
Missing NFC Icon in connectivity menu (Nokia C7-00...
I have just Updated my nokia C7-00 Belle to Latest software Version 111.040.151, after updating I have lost NFC Switch On/off icon in connectivity menu. Nfc also not working while i tap to other NFC device. Any help?
-
I dowload chrome but i can see were is in my dock
I download chrome and i can see it in my dock
-
I open a PDF file in maximized window, but after i close it and open a new PDF file like 3-5 times. It wont open in maximize anymore, it opens in normal window.