Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I will really appreciate help with this.
I have 12 months of data. I have columns containing unique customer IDs, location and and sale units. I want to compare the change in units by mactching the customer IDs from month to month.
(1) I'm particularly looking at the "decrease in units for existing customers", and the "increase in units for existing customers and new customers"
(2) And return a distinct location count for the two scenarios above.
In short:
1. How many sale units have been added from the previous month (additions could come from new and existing customers)?
2. How many location by distinct count did the additions come from?
3.What was the decrease in sale units from the previous month by existing customer ID ?
(A decrease could happen by loosing a customer entirely or just lost of partial sale)
4. How many locations by distinct count did the decrease come from?
Table Columns:
Date Customer ID Revenue Units Location
Expected Results:
Table columns (Units)
Month(YY-MM) Beginning Units Units Added Units lost Net Units Ending Units
Table Columns (Locations)
Month(YY-MM) Beginning Locations Locations Added Locations lost Net Location Ending Locations
I was able to get the units and locations added but it didn't work for the units and locations lost on the other way round.
Hi @Kayslam ,
In order to better understand your demands and give the right solution, could you please provide some more specific information? such as your desensitized example data and a screenshot of your desired results?
Thanks for your efforts & time in advance.
Best regards,
Community Support Team_ Binbin Yu
Thanks @Anonymous I have modified my post. I hope this helps. I'm happy to clarify as needed. Thanks again for your help.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 16 | |
| 10 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 14 | |
| 11 | |
| 10 |