Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have three columns of data: salesmanID, clientID, and signingDate. I'd like to build a line graph that shows total number of clients by month. There will be a slicer for the salesmanID so each salemans client population can shown.
What ways could I aggregate the client populaton given the above information?
Thoughts I had: Use the displayed month in the horizaontal axis as part of an inequality that checks if the signingDate is less than that month, then have PowerBI count the number of true inequalities.
Thanks in Advance.
Hi @OwenA ,
To create a line graph showing the total number of clients by month with a slicer for salesmanID, you can follow these steps:
Here's an example of the DAX measure to count clients:
Client Count = COUNT('YourDataTable'[clientID])
Replace 'YourDataTable' with the name of your data table.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I would do a CLUSTERED COLUMN chart. Put MONTH(Signing Date) on the X azis. Put Salesman ID as the Legend (that groups all salesman together in one Monthly cluster. Then for the Y Axis do a COUNT(CleintID).
Do you have sample data you can share?
Proud to be a Super User! | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
56 | |
56 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
39 |