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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
RichOB
Post Partisan
Post Partisan

Changing the total calculation in table

Hi, how can I change the total in the Family Payment column to show £7045.38, not "260.94? The measure for this column is:

 

Family_Payment = CALCULATE( SUM( 'Table1'[Amount] ), 'Table1'[Desription] = "Family Payment" )

 

RichOB_0-1760347996286.png

Thanks

3 REPLIES 3
v-tsaipranay
Community Support
Community Support

Hi @RichOB ,

Thanks for reaching out to the Microsoft fabric community forum. 

 

After thoroughly reviewing the details you provided, I try to workon my end. I have used some sample data on my end and successfully implemented it.     

I am also including .pbix file for your better understanding, please have a look into it:

Hope this resolves your issue. Please feel free to reach out for any further questions.

Thank you 

RichOB
Post Partisan
Post Partisan

Hi Ivanka, thanks for your reply. For some reason, i'm unable to add a pbix file, but here is how the table data is arranged from the source:

 

RichOB_0-1760354916018.png

Here is the government payment measure that splits up the monthly payment per week:

Government_Payment_Needed = 
VAR _Week = MAX( 'Table1'[Week Number] )
VAR _LastGovPaymentWeek = CALCULATE( MAX( 'Table1'[Week Number] ), 'Table1'[Desription] = "Government Payment", 'Table1'[Week Number] <= _Week )
VAR _LastGovPayment = CALCULATE( MAX( 'Table1'[Amount] ), 'Table1'[Desription] = "Government Payment", 'Table1'[Week Number] <= _LastGovPaymentWeek )
VAR _Return = _LastGovPayment / 4
RETURN _Return

 

Here's the week number measure:

Week Number (FY) =

VAR CurrentDate = 'Table1'[Date]

VAR FYStart =

    DATE(

        YEAR(CurrentDate) - IF(MONTH(CurrentDate) < 4, 1, 0),

        4,

        1

    )

RETURN

INT( ( CurrentDate - FYStart ) / 7 ) + 1

 

Thanks!

ivana_tomekova
Advocate I
Advocate I

Hi... this look strange, because formula looks OK.... so problem would be probably somewhere on model level.... can you share your pbix file?... or what is the formula for Government payment?... do you have data in Table1 aggregated by year week?.... to me it looks like that week specification in Table1 is missing, therefore for every week and also for total just same amount is used.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.