The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |