Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I am trying to count number of managers that have been using an extra printer a date slicer. The Enter Date and Leave Date columns are from when they started this fiscal year. Also, if the leave date shows blank then it shows today. I have a seperate Date table that has inactive relationships with the Enter Date and Leave Date. How would I be calculating the number of employees that are using an extra printer with a date slicer?
ID | Printer | Enter Date | Leave Date |
204 | Y | 6/30/20 | 7/16/20 |
566 | Y | 5/4/20 | 7/14/20 |
765 | N | 6/30/20 | 7/16/20 |
Not very clear.
Can you share sample sample output in a table format?
refer if this file can help
https://www.dropbox.com/s/bqbei7b8qbq5xez/leavebetweendates.pbix?dl=0
Hello,
Thank you so much for your help. I am copying over the the the information from your file with an added column here.
T_sample
id | Enter Date | Leave Date | Passed Test/Not |
1 | Thursday, August 19, 2019 | Wednesday, April 1, 2020 | Y |
2 | Thursday, August 18, 2019 | Friday, March 20, 2020 | N |
3 | Thursday, October 18, 2019 | Tuesday, March 31, 2020 | Y |
4 | Thursday, September 10, 2019 | Wednesday, May 27, 2020 | N |
5 | Thursday, August 19, 2019 | Monday, July 20, 2020 | Y |
I have also connected them in an inactive relationship. The DimDate table is from your file that I have used here.
I am trying to calculate the Number of Users that have passed the test as a sample here. And I will be using the Date Column from DimDate table as slicer.
So far, I have tried the following but I am having issues trying to connect the Leave Date in the formula as well.
Thus, it currently looks somewhat like this.
Also, my auto date/time is turned off due to some other date related calculations.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
10 | |
6 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
10 | |
6 |