Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am trying to divide a measure [credit-Debit ] by a column "job weekly scheduled hours" in order to get the houlry rate . The data is in SSAS layer. I can only derive measures . Calculated columns are not allowed. ( igonore the negative sign in [credit - debit].
I'd appreciate any feed backs.
Thanks
Javaid
hi @javaid355
Since you are using Live connection in power bi, it is live connecting to a data model, so you could just create report level measure in power bi, all other modeling like create column/table,etc needs to be done in ssas.
https://radacad.com/live-connection-when-power-bi-comes-hybrid
For your case,just create a measure as below to get your requirement:
Result=DIVIDE([credit-Debit ] , SUM(Table[Job Scheduled Weekly Hour]))
Regards,
Lin
Hi Lin,
I am not getting the desired results by using this formula.
Please let me know your thoughts.
Thanks.
Jav
Divide should be measure only
Measure = divide(sumx(Table,abs(Table[credit - debit])),sum(Table[Job Scheduled Weekly Hour]))
or
AvergaeX(Table,divide(abs(Table[credit - debit]),Table[Job Scheduled Weekly Hour]))
Hey Amit,
Both of your suggestions are not giving the correct hourly rate. ( just a reminder that [credit-debit] is a calculated measure, not a column.
Thanks.
User | Count |
---|---|
97 | |
85 | |
77 | |
66 | |
62 |
User | Count |
---|---|
110 | |
96 | |
95 | |
64 | |
57 |