Forum Discussion

kpatel49's avatar
kpatel49
Frequent Visitor
4 years ago
Solved

Chart with Dynamic X axis that filters based on date range.

Hello,

I have a table with the following columns:

Dates | User ID | # of Purchases
1/2          1                  3
1/2          2                  2
1/3          1                  4
1/3          2                  1 
1/5          1                  2 

Im trying to find a way to calculate the number of unique users that made a certain amount of purchases between any given dates.  Ideally i would have a slicer for a date range and purchase count to find the number of users.  Any help would be great to calculate this.  Desired Result would looke like a chart similar to below.  So for Example, i would like to know between 8/1 - 8/4 the number of unique users that made a total of 1 transcation, 2 transcation, 3 transaction for that given date range.


 

Thank you

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi kpatel49 ,

     

    Suppose we have a table like this.

    First create a calendar table.

    'Number of transactions' table:

    Relationships:

    New a measure:

     

    transcation = 
    DISTINCTCOUNT('Table'[User ID])

     

    New column chart.

     

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi kpatel49 ,

     

    Suppose we have a table like this.

    First create a calendar table.

    'Number of transactions' table:

    Relationships:

    New a measure:

     

    transcation = 
    DISTINCTCOUNT('Table'[User ID])

     

    New column chart.

     

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly -- How to provide sample data