Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Create a table that records values every hour

Hello,

 

I am seeking the help of the community for something I want to do in Power Query.

I want to create a new table that calculates every day, a value and store it in a new table. 

Ideally the result would be a new table with 3 columns:

one date column: from 01/05/2023 til 31/12/2023 

one column that sums all the rows of a column in an existing table (tickets creates)

a second a column that sums as well all the rows of a column in an existing table (tickets resolved).

 

The purpose is to generate a graph that shows day by day how many tickets are created and how ma y tickets are resolved.

 

Many thanks for your help!

 

3 Replies

  • We want to help you but your description is too vaugue. Please write it again clearly.

    Please just give a simple non technical functional decscription of what you want, then let us suggest the DAX. Thank you.

    Provide example input data as table text (not a screen print) so we can import the data to build a solution for you.
    Also provide the example desired output, with a clear description of the process flow.

    Remember not to share private data ... we don't want you to get into trouble. 😧

    Take time and care to use the same table and field names in the input, output and description so we can understand your problem and help you.

    You will get a quick response if you put time, care and effort into writing clear problem descriptions.

    Vaugue descriptions can waste your time and ourtime.

    Look foward to helping you when the above information is forthcoming

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    Can you provide some sample data and the output you want so that can provide more suggestion for you.

     

    Best Regards!

    Yolo Zhu

     

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Community Champion

    as your description, had better resovle it in DAX

    say,

    1 create a datetable, and mark it as date table

    2 creat a relationships with date columns between the datetable and your data table

    3 put the date column of datetable in the row area of a matrix visual

    4 create two measure, and put them in the value area

    TicketsCreated=COUNTROWS(FILTER(DataTable,DataTable[Status]="Created"))

    TicketsResovled=COUNTROWS(FILTER(DataTable,DataTable[Status]="Resolved"))