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.
I need to substract hours from Reg hours column in Power BI. How can I achieve the Final hours calculation in power BI
Employee | Leave Type | Trans hrs | Regular Hrs |
ABC | SIck Leave | 8 | 40 |
ABC | Annual Leave | 6 | 40 |
ABC | DH Leave | 4 | 40 |
XYZ | SIck Leave | 12 | 40 |
XYZ | Annual Leave | 10 | 40 |
XYZ | DH Leave | 8 | 40 |
Report requiremnt as below. I am able to get the below report in matrix by placing Leave type in column section of Matrix view. But unable to do substract RH-total hrs.
Employee | Reg Hrs | SL | AL | DH | Total | Final Hrs |
ABC | 40 | 8 | 6 | 4 | 18 | 40-18 |
XYZ | 40 | 12 | 10 | 8 | 30 | 40-30 |
If these are columns you can use SUM Function Hrs = Sum('Table'[Hrs]) - Sum('Table'[Total Hrs])
You need to create a measure
Hrs = [Hrs] - [Total Hrs]
How do you pickup total hours, it will be generated dynamically. There is no column to hold total
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 |
---|---|
114 | |
105 | |
78 | |
68 | |
63 |
User | Count |
---|---|
148 | |
107 | |
106 | |
84 | |
70 |