How can we show data in rows when it is in Columns........

I have strucked with a simple but a complex problem.
I have a Report with data in vertical rows..need of the hour is how can we show that data into column structure.
here is the table sample which i have in Database..
Location      chrg_type    Effective_date
xxxxxxx        xxxx          xx-xx
thhis is the structure in effective date we have several months in it in a single column i want show the effective date or effective month in various columns instead of a single column.
my required table is....
                            Effective_date     Effective_date
Location      chrg_type     xx-xx              xx-xx
xxxxxxx        xxxx          xx-xx
any tough heads?????

Hi Sunil,
Your 1st problem is that you are going to need one more field to accomplish you goal. What type of data do want under your new date columns?
Anyway, once you have that you need to move on to how to move the data out into columns based on date.
Try something like this.
0_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',CurrentDate) AND
DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',CurrentDate)
THEN {tbl.DataField}
1_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',DATEADD('m', -1, CurrentDate)) AND
DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',DATEADD('m', -1, CurrentDate))
THEN {tbl.DataField}
2_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',DATEADD('m', -2, CurrentDate)) AND
DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',DATEADD('m', -2, CurrentDate))
THEN {tbl.DataField}
... Repeat this process until you have all of the columns you need, following this format.
Hope this works for you,
Jason

Similar Messages

  • How can I show additional tab rows when using many open tabs?

    How can I show additional tab rows when using many open tabs?

    What method (code) did you use to get the Tab bar displaying in the space used for the Navigation Toolbar (location bar)?
    The Tab bar should be displayed above the Navigation Toolbar.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How do I Show date and time when I hover over clip like in iMovie

    How do I get FCPX 10.6 to show date and time when I hover over a clip? I can so it in I movie and as I move over my clips the date/time is shown. I need it for that specific point in the clip not just the record start time.

    I realize that my needs are outside of the normal editing workflow. I am a private investigator and last week I shot over 6 hours of surveillance video on a Sony video camera. Within this 6 hours of video there is at most 2 minutes of actual footage of my subject. So what I wanted to do was just import the parts of the clip I want, so I can avoid importing the whole 6 hours, and then add a text title of some sort that shows the date/time. My problem is that once I get this clip I have easy way of establising the TOD short of taking the clip capture time and then counting up using the SMTPE Timecode. In this regard iMovie makes it easier because I can just hover over the clip and see the TOD of that specific frame. iMovie on the other hand would force me to import the whole 6 hour video so i'm left moving between both programs which is less than ideal.

  • How can I filter data by row contents? Similar to Excel's filter feature.

    I would like to view only the rows in which the data in column x is some particular value.
    For instance, I'd like to view (and create a group of channels) containing only data from rows where the text in column 2 is MC1.
    ... guess I can't put a picture inline...
    See attached for sample data.
    Thanks.
    Attachments:
    MyData.PNG ‏40 KB

    Hi ebloohm,
    This script will break out your loaded data rows by the "Station" channel values.  let me know if you want to filter out the "1;2" suffix or leave it differentiated.  If you want to do the same sort of thing not within a single file but across multiple files, then you'd do better to change your DataPlugin to enable the DataFinder to pull only the desired rows from each file.
    OPTION EXPLICIT
    Dim i, j, iMax, jMax, RawGroup, Channel, IdChName, OrderChName, Msg, LastTime
    Dim IdChDict, IdChannel, OrderChannel, RowDict, RowKeys, RowItems, DataChDict
    IdChName = "Station"
    OrderChName = "" ' "Time" or ""
    Set RawGroup = Data.Root.ChannelGroups(GroupCount)
    On Error Resume Next
    Set OrderChannel = RawGroup.Channels(OrderChName)
    On Error Goto 0
    Set IdChDict = CreateObject("Scripting.Dictionary")
    Set IdChannel = RawGroup.Channels.Add(IdChName, DataTypeString)
    IdChDict.Add UCase(IdChannel.Name), IdChannel
    Set Channel = RawGroup.Channels(IdChName) : IdChDict.Add UCase(Channel.Name), Channel
    jMax = RawGroup.Channels.Count-1
    Set DataChDict = CreateObject("Scripting.Dictionary")
    IF IsObject(OrderChannel) THEN
    DataChDict.Add UCase(OrderChannel.Name), OrderChannel
    END IF
    FOR j = 1 TO jMax
    Set Channel = RawGroup.Channels(j)
    IF NOT IdChDict.Exists(UCase(Channel.Name)) AND UCase(Channel.Name) <> UCase(OrderChName) THEN
    DataChDict.Add UCase(Channel.Name), Channel
    END IF
    NEXT ' j
    Msg = "Enumerating all the Groups..."
    Call MsgBoxDisp(Msg, "MB_NOBUTTON", "MsgTypeNote", 0, 0, 1)
    Call CreateIdChannel(IdChDict)
    Set RowDict = EnumerateIdRows(IdChannel)
    RowKeys = RowDict.Keys
    RowItems = RowDict.Items
    iMax = UBound(RowKeys)
    LastTime = Timer
    FOR i = 0 TO iMax
    IF Timer > LastTime+1 OR Timer < LastTime THEN
    Msg = "Sort Extracting Group " & i+1 & " of " & iMax+1
    Call MsgBoxDisp(Msg, "MB_NOBUTTON", "MsgTypeNote", 0, 0, 1)
    LastTime = Timer
    END IF
    Call ExtractIdGroup(RowKeys(i), RowItems(i), IdChDict, DataChDict)
    NEXT ' i
    Call RawGroup.Channels.Remove(IdChannel.Name)
    Call MsgBoxCancel
    Sub TextToNumeric(Group, ChanName, ChanType, Factor, Offset)
    Dim RawChannel, NewChannel
    Set RawChannel = Group.Channels(ChanName)
    Set NewChannel = Group.Channels.Add("New|" & ChanName, ChanType)
    L1 = RawChannel.Properties("Number").Value
    L2 = NewChannel.Properties("Number").Value
    ChnLength(L2) = ChnLength(L1)
    Call ChnCalculate("Ch(L2) = CDbl(Ch(L1))")
    IF Factor <> 1 OR Offset <> 0 THEN
    Call ChnLinScale(NewChannel, NewChannel, Factor, Offset)
    END IF
    Call ChnMove(NewChannel, RawGroup.Properties("Index").Value, RawChannel.Properties("GroupIndex").Value)
    Call RawGroup.Channels.Remove(RawChannel.Name)
    NewChannel.Name = Mid(NewChannel.Name, 5)
    End Sub ' TextToNumeric()
    Sub CreateIdChannel(IdChDict)
    Dim j, jMax, RawGroup, ChListStr, IdChannels, IdChannel
    IdChannels = IdChDict.Items
    Set IdChannel = IdChannels(0)
    Set RawGroup = IdChannel.ChannelGroup
    Call RawGroup.Activate
    ChListStr = ""
    jMax = UBound(IdChannels)
    FOR j = 1 TO jMax
    ChListStr = ChListStr & "Ch(" & IdChannels(j).Properties("Number").Value & ") & ""."" & "
    NEXT ' IdCh
    ChListStr = Left(ChListStr, Len(ChListStr)-9)
    Call ChnCalculate("Ch(" & IdChannel.Properties("Number").Value & ") = " & ChListStr)
    End Sub ' CreateIdChannel()
    Function EnumerateIdRows(IdChannel)
    Dim j, jMax, RawGroup, RawChannel, RawChnStr, RowDict, StartRow, StopRow, RowMax
    Set RawGroup = IdChannel.ChannelGroup
    Call RawGroup.Activate
    RawChnStr = ""
    jMax = RawGroup.Channels.Count-1
    FOR j = 1 TO jMax
    Set RawChannel = RawGroup.Channels(j)
    RawChnStr = ChnStrAdd(RawChnStr, RawChannel.Properties("Number").Value)
    NEXT ' j
    Call ChnMultipleSort(IdChannel, RawChnStr, 0, 1)
    L3 = IdChannel.Properties("Number").Value
    Set RowDict = CreateObject("Scripting.Dictionary")
    StartRow = 1
    StopRow = 1
    RowMax = ChnLength(L3)
    Do While StopRow <= RowMax
    T1 = ChT(StartRow, L3)
    StopRow = ChnFind("UCase(Ch(L3)) <> UCase(T1)", StartRow+1)
    IF StopRow = 0 THEN StopRow = CLng(RowMax+1)
    RowDict.Add T1, StartRow & "|" & CLng(StopRow-StartRow)
    StartRow = CLng(StopRow)
    Loop ' Until End Of Channel L3
    Set EnumerateIdRows = RowDict
    End Function ' EnumerateIdRows()
    Function ExtractIdGroup(RowKey, RowItem, IdChDict, DataChDict)
    Dim j, jMax, RawGroup, RawChannel, NewGroup, NewChannel, RawChnStr, NewChnStr, DataChannels, Cols
    Dim StartRow, RowCount, NewDataType, NewDataDisp, NewOrderCh, IdChannels, IdChannel, OrderChannel
    Cols = Split("|" & RowItem, "|")
    IF UBound(Cols) < 2 THEN Exit Function
    StartRow = CLng(Cols(1))
    RowCount = CLng(Cols(2))
    IF Data.Root.ChannelGroups.Exists(RowKey) THEN Call Data.Root.ChannelGroups.Remove(RowKey)
    Set NewGroup = Data.Root.ChannelGroups.Add(RowKey)
    Call NewGroup.Activate
    IdChannels = IdChDict.Items
    jMax = UBound(IdChannels)
    FOR j = 1 TO jMax
    Set IdChannel = IdChannels(j)
    NewGroup.Properties.Add IdChannel.Name, ChV(StartRow, IdChannel.Properties("Number").Value)
    NEXT ' j
    RawChnStr = ""
    NewChnStr = ""
    DataChannels = DataChDict.Items
    jMax = UBound(DataChannels)
    FOR j = 0 TO jMax
    Set RawChannel = DataChannels(j)
    Set NewChannel = NewGroup.Channels.Add(RawChannel.Name, RawChannel.DataType)
    ChnLength(NewChannel) = RowCount
    RawChnStr = ChnStrAdd(RawChnStr, RawChannel.Properties("Number").Value)
    NewChnStr = ChnStrAdd(NewChnStr, NewChannel.Properties("Number").Value)
    NEXT ' j
    Call DataBlCopy(RawChnStr, StartRow, RowCount, NewChnStr, 1)
    NewChannel = ""
    On Error Resume Next
    Set NewChannel = NewGroup.Channels("Value")
    On Error Goto 0
    IF OrderChName <> "" THEN
    NewChnStr = ""
    jMax = UBound(DataChannels)
    Set OrderChannel = NewGroup.Channels(DataChannels(0).Name)
    FOR j = 1 TO jMax
    Set NewChannel = NewGroup.Channels(DataChannels(j).Name)
    NewChnStr = ChnStrAdd(NewChnStr, NewChannel.Properties("Number").Value)
    NEXT ' j
    Call ChnMultipleSort(OrderChannel, NewChnStr, 0, 1)
    END IF ' can order the rows of each extracted Group
    Set ExtractIdGroup = NewGroup
    End Function ' ExtractIdGroup()
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How can I erase data on iPad when I have a dead screen?

    I have a 32g 3g original version iPad.  The screen is dead but I when I hook up to iTunes I can still see my data and sync etc. so the insides are working fine.  I want to permanetly errase all the my personal data and settings.  How can I do that when I can't see the ipad screen.  A simple reset from iTunes will not do that will it?

    You can restore it "as new device".  Plug it into iTunes, press and hold the on/off and the home button at the same time until iTunes pops up saying it has detected a device in recovery mode.  The restore it as a new device - that will wipe everything off it and return it to essentially the way it was once activated right out of the box.

  • HT4623 How can I up date my iPhone, when you go into settings and click on general there should pop up a thing that says update between about and usage  it does not have it and I can't update it now

    How can I update my iPhone,when I go  into settings and click on general something should pop up between usage and about that says up but it does not and my iPhone needs to be updated.

    If you don't have the update option on your phone, you will need to update in iTunes on your computer.

  • How can I up date Abobe Flassh when I get this message: Action list not found?

    I've looked every where and have not found an answer--I keep getting the message: Actionlist not found. Therefore I can not up date my Adobe Flash driver.  I am using OX 10.8.5, does anyone have a workable solution?

    Turn off any Firewall, if you have turned it on.
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        Follow the prompts.   Click Safari in the menubar and select “Quit Safari”.
        Restart computer. Relaunch Safari.

  • How can I do for a row of a query be data provider for a variable?

    Hi friends, I have a problem !
    How can I do for a row of a query be data provider for a variable?
    I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
    Best regards,
    Gustavo Liberado

    In this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
    Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
    Then once you understand the basics you add the code to your real program.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How can I show album art in the mini player when playing songs from a plugged in iPhone?

    How can I show album art in the mini player when playing songs from a plugged in iPhone?
    When I play from my phone and switch to the mini player it's always showing the music notes in the thumbnaill. It'd be nice if it could get album art off of the phone.
    I'm on iTunes version 11.0.4.4

    He @mracole,
    it is very nice that you post a solution to complete the library with artwork for album's that do not have an artwork. Your solution perfectly addresses the problem for assigning artwork, BUT this thread is about CHANGING artwork for albums already uploaded into iTunes Match. Just try to replace for example a blue artwork cover for an album with a red one. If you made it in a simple way (without deleting the album from iTunes Match and local changes on the files with an external ID3-Application or 2 or more iTunes libraries on different Mac's) this is the right place to give a solution. I really tried for hours to change the artwork to make them visible in landscape cover flow mode on my iPhone5. In rare cases I made it, but then the covers sometimes where restored to the old onces - exacly how it is mentioned by Starhawk
    As long as there is no simple way to change the cover of an iTunes Match stored album (you can change title, artist and so on without hitting "update iTunes Match" over all distributed Library on different devices - this date will be synchronized almost instantly) I considered the behaviour from iTunes as BUGGY! For me the local artwork cache (and if there is any iCloud artwork cache - I don't know) do not interfere with iCloud. Even when I delete the whole local cache (album artwork music - everything) I do not manage to change the artwork.
    Regards from Munich, Germany

  • How can I show a 0% range in the data value label on a bar chart thanks?

    How can I show a 0% range in the data value label on a bar chart thanks?

    I'm not sure what the question is. 
    I know that if you have a bar chart and one of the categories (X-axis) has bar (Y value) equal to 0%, no bar is plotted for that category. Even the addition of a stroke (line) around the bars doesn't make one appear for 0%.  The only automatic way I know of to make it look like there is data in that category is to add the value labels to the bars. Inspector/Chart/Series, select one of the bars on the chart, click on "value labels". Another method that is a workaround is to fudge the number a little in your table so that instead of 0% it is a very small %.  This will get you a thin line on the chart.
    But if your question is about the value labels (the numbers that display on or in the bars) and you are not getting one for a bar that is supposed to be 0%, it probably means your table doesn't actually have a 0% in the corresponding cell. A blank cell in the table will not get a value label.

  • HT4847 How i take an old back form my old iphone to my new iphone?!when i acces icloud from my phone and go to manage storage i have 4 back up for diferent phone how can acces this data?!

    How i take an old back form my old iphone to my new iphone?!when i acces icloud from my phone and go to manage storage i have 4 back up for diferent phone how can acces this data?!

    Thanks very much!
    Although I had to add everything again to the playlist, at least I can just copy it over in future!

  • How can I show the photos of the person that im calling? now that im using IOS 7 when i want to call someone the photo /imagine does not appear , how can i fix it? iPhone 5, iOS 7

    how can I show the photos of the person that im calling? now that im using IOS 7 when i want to call someone the photo /imagine does not appear , how can i fix it?
    iPhone 5, iOS 7

    jlfcba wrote:
    IOS 7.1.1 doesn't show a "days to sync" parameter anywhere in SETTINGS/Mail,Contacts,Calendars/ACCOUNTS/GMAIL Account/ GMAIL Acccount Info.  There is nothing in iTunes relating to such an option either.  So, it seems I'm back to square one.
    If you have a decent mail provider like Microsoft Hotmail or Outlook.com mail it does.
    If you have Gmail it does not.  Quite right. Gmail is rubbish.

  • How can I generate data when the link is click on?

    i have written a stackoverflow question ,
    would like some input if you have any , thanks, i would like to stay away from using jquery
    http://stackoverflow.com/questions/23143436/how-can-i-generate-data-when-the-link-is-click -on/23143813?noredirect=1#23143813

    I think you need to rephrase your question and be more specific. Also for me the images you are referring to do not exist. From your question I am interpreting it as "how do I program?"

  • How can i show a Data that receiving from PLC, showing it by Round leds?

    I need to show Data from a PLC, which consists in 4 Bytes of information. This information is according to 0 and 1 combination and i wold like to show by Round Leds.
    I`m using the VISA Read palette, and need to read the Data out from "read buffer" ootput for after showing it with Roun Leds (32 led).
    How can i show the string from this "read buffer"?
    I have used "String to Byte array" but i cann`t show the Byte (0,1) and otherwise the Round Leds
    What command I need to put for converting this kind of "array"?
    Thank a lot for your help!
    I`ll show you my program.

    Hi maurovera,
    I think you just want to convert a 4 byte string to boolean arrays like shown in the attachment...
    Btw. you don't need to show an U8 array in an EXT indicator - kind of overkill (and bad programming style too...)
    Message Edited by GerdW on 07-04-2009 10:52 AM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    string2bool.vi ‏21 KB

  • When sending e-mails, how can I show only the name and not include the e-mail address?

    When sending e-mails, how can I show only the name of the recipient and not include their full e-mail address?

    Hi beverlyfromnull,
    Have you added the recipients to your address book?

Maybe you are looking for