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

View all the Fabric Data Days sessions on demand. View schedule

Reply
RichOB
Post Partisan
Post Partisan

Need help calculating figures in a column to weekly amounts

Hi,

 

In this scenario, I have a non-profit daycare company. The government gives me a certain amount each month to help run it, and I also receive payments that are made by the families weekly. I need to show per week the difference between these 2 amounts. 

 

- I need to divide the Gov_Payment by 4 and have that in the Payment_4 cell weekly, even when there are 5 weeks, E.g. September needs to be 260 for 5 weeks, not 4.

 

- In the system, the Gov_Payment will sometimes change throughout the year. I need this to be reflected in the Gov_Payment_4 column the week that that happens.  E.g. the change from 900 to 1040 on the 9th week.

 

Week_NumberMonthFamily_PaymentGov_PaymentGov_Payment _4 (column needed)Difference (column needed)
1April2259002250
2April225 2250
3April225 2250
4April225 2250
5May2259002250
6May225 2250
7May225 2250
8May225 2250
9May2481040260-12
9June248 260-12
10June248 260-12
11June248 260-12
12June248 260-12
13June2481040260-12
14July248 260-12
15July248 260-12
16July248 260-12
17July2481040260-12
18August248 260-12
19August248 260-12
20August248 260-12
21August2481040260-12
22September248 260-12
23September248 260-12
24September248 260-12
25September2481040260-12
26September248 260-12
27October248 260-12

 

Thanks

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@RichOB 

1. Fill Down the Gov_Payment
In Power BI, use Power Query to fill down the Gov_Payment column:

Go to Transform Data.
Select the Gov_Payment column.
Use the Fill Down option.

 

Go to the Data view and add the following calculated columns:

Gov_Payment_4 = DIVIDE([Gov_Payment], 4)

 

Difference = [Gov_Payment_4] - [Family_Payment]

 

Because you filled down the Gov_Payment, any change (e.g., from 900 to 1040) will be reflected in the week it occurs and all subsequent weeks until the next change.

You specified that even in 5-week months, the weekly amount should be Gov_Payment / 4, not /5. The above logic handles this, as it always divides by 4.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@RichOB 

1. Fill Down the Gov_Payment
In Power BI, use Power Query to fill down the Gov_Payment column:

Go to Transform Data.
Select the Gov_Payment column.
Use the Fill Down option.

 

Go to the Data view and add the following calculated columns:

Gov_Payment_4 = DIVIDE([Gov_Payment], 4)

 

Difference = [Gov_Payment_4] - [Family_Payment]

 

Because you filled down the Gov_Payment, any change (e.g., from 900 to 1040) will be reflected in the week it occurs and all subsequent weeks until the next change.

You specified that even in 5-week months, the weekly amount should be Gov_Payment / 4, not /5. The above logic handles this, as it always divides by 4.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi @bhanu_gautam thanks for your reply, it solved what I was trying to do, but I realized I needed to start from a few steps back before getting to the table I input, so I had to make a new post. But thanks for this!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors