Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a bar chart, with a typical datetable and the sum of duration of workload with following measure:
Workload =
Solved! Go to Solution.
I think a DimShift or DimTime table might help here, but we need a bit more detail on how you want the 24 to change.
Could you add the denominator info to your Shift table? For example
Shift Category | Hours |
A | 8 |
B | 8 |
C | 8 |
Then divide by SUM(Shift[Hours])
If all shifts are selected it will divide by 24, if just 2 then 16, if just one, then 8.
Not sure if your model is that simple? Let us know more details if this doesn't work or make sense.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
I think a DimShift or DimTime table might help here, but we need a bit more detail on how you want the 24 to change.
Could you add the denominator info to your Shift table? For example
Shift Category | Hours |
A | 8 |
B | 8 |
C | 8 |
Then divide by SUM(Shift[Hours])
If all shifts are selected it will divide by 24, if just 2 then 16, if just one, then 8.
Not sure if your model is that simple? Let us know more details if this doesn't work or make sense.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@AllisonKennedy indeed a very straightforward approach. I thought too complicated and my approach would only work for selecting one Shiftcategory at a time or all, but not when I'm selecting two:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |