Hi,
As the query states, I have a stats command that gives me a table with all the required columns. While viewing the stats during search, using table command I am able to reorder the columns to the desired view. However, when I write the output to a csv using outputlookup, the columns get re arranged in alphabetical order of their names. Is there any way we can override this?
Thanks for the help!
... View more
Thanks a lot for this. However, the Table comes out with repeated values for Year and Month. DEDUP seems to remove entries of other Columns as well. Is there any way to remove those duplicates? Thanks in advance!
... View more
Just to point out: the desired output your illustrated is not "occurrences of CCYY then MM then DD," but occurrences of CCYY, then CCYYMM, then CCYYMMDD. This is correct. I would have to further drill down to HH MM SS as well, which would be CCYYMMHHMMSS. Thanks for the info. Additionally, 2022-27 is not a very good illustration of Month. Apologies for this.
... View more
Basically I have a set of raw data with different time stamp in CCYYMMDDHHMMSS format. I want to list out the stats which shows how many occurrences of CCYY then MM then DD . I am able to use STRFTIME to get the segregate the data into desired format as year month and day. My expected result output is Year Year Count Month Month Count Day DayCount 2022 1000 2022-11 250 2022-11-27 20 2023 10 2022-12 100 2022-11-12 5 2022-11-27 35 I used the below |stats count as total by year, month day But the actual output is not as expected Year Year Count Month Month Count Day DayCount 2022 20 2022-11 20 2022-11-27 20 2022 5 2022-12 5 2022-11-12 5 2022 35 2022-27 35 2022-11-27 35 Should be simple enough, just not for me. Please help. Thanks!
... View more