Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Learner27
Helper III
Helper III

Dax Needed for Rate for Zero Work week rolling

Hi everyone,

I'm trying to create a measure for the "rate for $ work" on a weekly basis. For the first week, the calculation is as follows: I sum up all the measures and divide by the total hours of the task.

The formula for the
"rate for $ work" =R_service_earnings + C_Service_earnings + R_Act_Hours + C_Act_Hours + Extra_Working_time + Divisional_pay + Geo_pay + R_Install + C_Install + Indirect_Pay / Total_Hours_of_Task.

We need to use the above formula for the first week. After the first week, for the subsequent weeks, we need to multiply the "rate for $ work" from the previous week.

For example, in week 2, the formula for the
"rate for $ work" = R_service_earnings + C_Service_earnings + R_Act_Hours * "rate for $ work" (of Week 1) + C_Act_Hours * "rate for $ work" (of Week 1) + Extra_Working_time * "rate for $ work" (of Week 1) + Divisional_pay * "rate for $ work" (of Week 1) + Geo_pay * "rate for $ work" (of Week 1) + R_Install + C_Install + Indirect_Pay / Total_Hours_of_Task.

We should continue this pattern for the subsequent weeks as well.
For week 3, we would replace the multiplication with the "rate for $ work" of Week 2,
for week 4 with the "rate for $ work" of Week 3, and so on.

This process should continue for the upcoming weeks

Here Im providing sample data 

It should not stop by the year; my data starts from the year 2022. In the year 2022, only for week 1, we use our very first formula which I stated above. However, in the year 2023, we will have week 1 again. In this week, we need to use the rate for $ work of week 52 from 2022.

Could you please help me with this? Your assistance would be greatly appreciated

WeekR_service_earningsC_Service_earningsR_Act_Hours C_Act_HoursExtra_Working_timeDivisional_payGeo_pay R_InstallC_InstallIndirect_PayTotal_Hours_of_Taskrate for $ work
183638747.492.890.672569.824.825411552 
273625848.243.450.2534322545141452 
38754754.867.850.45254514.3513.4525425284 
485477552.359.651.52452741.3625.544522542 
             
6 REPLIES 6
some_bih
Super User
Super User

Hi @Learner27 given all many to many relationship, are you sure this model is not ambigious? I mean you can reconcile some results and you are fine with it?

Nevertheless, you wrote sum up all measures like "The formula for the
"rate for $ work" =R_service_earnings + C_Service_earnings + R_Act_Hours + C_Act_Hours + Extra_Working_time + Divisional_pay + Geo_pay + R_Install + C_Install + Indirect_Pay / Total_Hours_of_Task."

In your measure folder there are some measures, but I could not find something like for R_service_earnings, or C_Service_earnings. Maybe I am missing something in overall model.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Learner27
Helper III
Helper III

Hi @tamerj1 , @lbendlin 

Please reply me ASAP it is very urgency 
I have attached more details for your understanding please let me know if further any 
your help will be apperciated

week_1

rate for Zero week 1.PNG

 Week 2

Rate for Zero.PNG




You may want to rename the sample file. The $ sign prevents the download.

Hi @lbendlin 
If you are facing issues downloading this file, you can rename it. Thank you for your prompt reply; this task is very urgent for me. I really appreciate your assistance.

Please note that In this forum we have users helping users on a voluntary basis with no commitment.  If you need urgent support I suggest you engage a Microsoft partner.

Learner27
Helper III
Helper III

Hi @tamerj1 

Here is the sample PBIX file I have attached ,please help me it is very very urgency.
Sample Data For Rate $Zero Work.pbix

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.