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 All,
I have a bar chart showing the monthly payroll, Im trying to create another visual that will provide the number of people that have started in the month i have selected on that bar chart. Below is some example data.
For example if i select January Payroll date on the bar chart visual, I would like it to return 4.
Start Date | Payroll Date | Pay |
01 January 2023 | 28 January 2023 | £100.00 |
01 January 2023 | 28 February 2023 | £150.00 |
01 January 2023 | 28 March 2023 | £75.00 |
01 February 2023 | 28 February 2023 | £50.00 |
01 February 2023 | 28 March 2023 | £100.00 |
01 March 2023 | 28 April 2023 | £200.00 |
01 March 2023 | 28 March 2023 | £300.00 |
01 January 2023 | 28 February 2023 | £400.00 |
01 February 2023 | 28 March 2023 | £500.00 |
01 February 2023 | 28 March 2023 | £600.00 |
I have tried this measure but can't get it to work.
Solved! Go to Solution.
Hi @Rince91 ,
I think so that your master date table has relationship with Payroll Date of your Payroll Table. In this type situation, you can use "Userrelationship" function in order to show result based on your second date column.
First of all, you should create relationship between secondary date column and master date table.
Then use this measure ;
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Rince91 ,
I think so that your master date table has relationship with Payroll Date of your Payroll Table. In this type situation, you can use "Userrelationship" function in order to show result based on your second date column.
First of all, you should create relationship between secondary date column and master date table.
Then use this measure ;
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Great thanks this worked!
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 |
---|---|
76 | |
72 | |
56 | |
38 | |
35 |
User | Count |
---|---|
83 | |
68 | |
59 | |
46 | |
45 |