March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a scenario where i need to show a column chart, where the x-axis has the number of times a customer has purchased (from 1 to 50). The y-axis shows the number of customers falling into each purchase frequency category, mostly buying only once and a few buying 50 times. The dataset has customers over a period of time (several years) and i need to show the change of the number of customers based on the number of times they purchased, for different periods (for example between 2015 to 2020, or 2018 to 2019, and 2020 only). I've tried a strategy in which to make a new table with a single column of data, with number ranging from 1 to 50, and used it as x-axis in the chart. I then tried to join this table with summarised number of customers based on the times of purchase, but the two tables simply could not join, and then when i got them to join, the result failed to show scalar number. Any help is appreciated.
Solved! Go to Solution.
@YongJiang , seem like you are lloking for dynamic segmentation
refer
https://www.daxpatterns.com/dynamic-segmentation/
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization
https://www.daxpatterns.com/static-segmentation/
https://www.poweredsolutions.co/2020/01/11/dax-vs-power-query-static-segmentation-in-power-bi-dax-po...
If not, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@YongJiang , seem like you are lloking for dynamic segmentation
refer
https://www.daxpatterns.com/dynamic-segmentation/
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization
https://www.daxpatterns.com/static-segmentation/
https://www.poweredsolutions.co/2020/01/11/dax-vs-power-query-static-segmentation-in-power-bi-dax-po...
If not, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Thank you amichantank for pointing out 'dynamic segmentation'!
It was great help to see the web links, and with the keywords above I also found a recent article by Radacad
https://radacad.com/customers-grouped-by-the-count-of-their-orders-dynamic-segmentation-in-power-bi-..., which provided info on what exactly i wanted.
thank you and have a nice day!
Yong
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
87 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |