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.
Hello,
Please see below, when dividing PAR_HOURS by FT-CE Sched Hr the correct result should be around 20%.
Why does the formula work for some months and not others? (See Feb and April)
Thanks
PPE_DT | PAR_HOURS | FT-CE | FT-CE Sched Hr | PAR_HOURS divided by FT-CE Sched Hr |
2/9/2019 0:00 | 8951 | 475 | 38000 | 12% |
2/23/2019 0:00 | 8003 | 475 | 38000 | 11% |
3/9/2019 0:00 | 8051 | 472 | 37760 | 21% |
3/23/2019 0:00 | 8119 | 486 | 38880 | 21% |
4/6/2019 0:00 | 8407 | 485 | 38800 | 11% |
4/20/2019 0:00 | 8126 | 485 | 38800 | 10% |
5/4/2019 0:00 | 8311 | 483 | 38640 | 22% |
5/18/2019 0:00 | 7340 | 482 | 38560 | 19% |
6/1/2019 0:00 | 6677 | 480 | 38400 | 17% |
Hi @lc1 ,
Please create a calculated column with the following DAX query:
PAR_HOURS divided by FT-CE Sched Hr = DIVIDE(Table1[PAR_HOURS],Table1[FT-CE Sched Hr])
The result will like below:
We can also create a measure like below:
PAR_HOURS divided by FT-CE Sched Hr 2 = DIVIDE(MIN(Table1[PAR_HOURS]),MIN(Table1[FT-CE Sched Hr]))
The result will like below:
Best Regards,
Teige
Neither of the options worked.
My original formula giving me the wrong results in Feb and April was:
The formula
I can't use that formula because the values are coming from different tables/sources. The hours are coming from a database where I have to sum all daily par hours per employees, per garage to get the total you see in the example below and the Scheduled hours are coming from an excel table.
What I find weird is that it works for some months and not for the others...
I am confused. Why can't you use that formula? Is your screenshot not what your data looks like in PBI?
The screenshot is based on the original formula:
Can you post the formula you are using?
Did you make many edits in the query editor that effected either of these columns*?
Original formula:
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 |
---|---|
110 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |