Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have 4 tables as mentioned in attachment Tasks,Holidays,Leaves,Total.
User1 Scenario:
Considering Total that in Jan20 say we have only total of 9 days of which Holidays tables say we have 3 days off & Leaves table talks about User1 took 1 complete day leave and per day we have 5 Man Hrs.
i could able to get:
Leaves Taken | Holidays | TotalWorking Hrs |
User1: 1 & User2: 0.5 | User1:3 & User2: 3 | Technically : (TotalDays - Leaves -Holidays)*5 Hrs That totalDays varies from Month-Month is that Month(UserTaskDate) is Jan then it should take Jan.... |
Seems like you want:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Net-Work-Days/m-p/367362#M109
I have a better version of that in my book along with calculating out % Utilization, etc.
Also, you will likely run into a measures total problem when doing this so. Very common. See my post about it here: https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376
Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907
Thanks Greg,
for the response, not exactly the same but im stuck in onething how to write DAX for a condition
Scenario:
if Month(Tasks[date]) = Month (Total[date]), which technically if Jan20 then 31-Tasks[WorkingDays], else if Feb20 then 28- Tasks[WorkingDays] and so on.
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 |
---|---|
14 | |
10 | |
10 | |
10 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |