Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

How to create measure for purchase frequency

Hi Guys,


Hope you are doing well and safe!!

 

I want to create a measure for dynamic purchase frequency table in power bi through which I can find out count of re-purchase done by every customer in a month. Also in the same table, some of the entries have zero purchase value which i want to exclude from count.

 

For Example (Customer-A purchase time in a month is 3, Customer-B purchase time in a month is 5 etc.)

 

Also i want to demonstrate the same over line chart in which X-axis is Frequency and Y-axis is Purchase Volume.

 

Good To have: if it possible that if i select a month from a slicer and frequency will sort out according month to month scenario (for example if you see the above photo in the table frequency 5 and 7 is 0).

 

Note: This visual is based on user month slicer.

 

Thanks in advance 🙂

  • Hi,

    You may download my PBI file from here.  The first table and the graph are what you want.  The second table is for verifying the results of first table.  Your and my answers will not match because i have excluded customers which had a value of 0.

    Hope this helps.

9 Replies

  • Hi Anonymous ,

    More information in the form of sample data might be required for this

     

    For example, you say Customer A purchases 3 times, and Customer B purchases 5 times. But we can't see the customer details in the sample data that you have shown.

     

    Input Sample data and Output Sample data might be required for easier analysis

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Icon for Super User rankSuper User

        Hi,

        You may download my PBI file from here.  The first table and the graph are what you want.  The second table is for verifying the results of first table.  Your and my answers will not match because i have excluded customers which had a value of 0.

        Hope this helps.