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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
RichOB
Post Patron
Post Patron

Measure for most recent transaction date figure

Hi, I'm trying get the Total_Arrears figure to be just the 1 amount from the Total_Arrears column, not the combined figures of each Transaction_Date.

 

My source data automatically overrides all previous Transaction_Date amounts with what the current Total_Arrears figure is. I cannot get around this in the CRM. What measure can show the property as having the 1 amount, not the combined amount, please? For example, I want to be able to show the data  broken down as:

 

North = -£1000 ( 3 properties in Glasgow and Edinburgh owing -£250 + -£250 + -£500)

Glasgow = -£500 (2 properties owing -£250)

P1 = -£250

 

AreaCityPropertyTotal_ArrearsTransaction_IDTransaction_Date
North GlasgowP1-£250T101/01/2025
North GlasgowP1-£250T201/02/2025
North GlasgowP2-£250T301/03/2025
North GlasgowP2-£250T401/04/2025
North GlasgowP2-£250T401/05/2025
North EdinburghP3-£500T501/01/2025
North EdinburghP3-£500T601/02/2025
North EdinburghP3-£500T701/03/2025
Mid ManchesterP4-£650T801/01/2025
Mid ManchesterP4-£650T901/02/2025
Mid ManchesterP4-£650T1001/03/2025
Mid ManchesterP4-£650T1101/04/2025
Mid ManchesterP4-£650T1201/05/2025
Mid ManchesterP4-£650T1301/06/2025
South BristolP5-£200T1401/01/2025
South BristolP6-£200T1501/02/2025
South BathP7-£300T1601/01/2025
South BathP7-£300T1701/02/2025
South BathP7-£300T1801/03/2025
South BrightonP8-£200T1901/01/2025
South BrightonP8-£200T2001/02/2025

 

Thanks

1 ACCEPTED SOLUTION
Elena_Kalina
Solution Supplier
Solution Supplier

Hi @RichOB 

Please try to create a measure

Latest_Arrears = 
VAR LatestDatesPerProperty =
    SUMMARIZE(
        'Table',
        'Table'[Property],
        "MaxDate", MAX('Table'[Transaction_Date])
    )
RETURN
    SUMX(
        LatestDatesPerProperty,
        VAR CurrentProperty = 'Table'[Property]
        VAR CurrentMaxDate = [MaxDate]
        RETURN
            CALCULATE(
                SUM('Table'[Total_Arrears]),
                FILTER(
                    'Table',
                    'Table'[Property] = CurrentProperty &&
                    'Table'[Transaction_Date] = CurrentMaxDate
                )
            )
    )

View solution in original post

4 REPLIES 4
v-achippa
Community Support
Community Support

Hi @RichOB,

 

Thank you for reaching out to Microsoft Fabric Community.

 

Thank you @Elena_Kalina and @rajendraongole1 for the prompt response.

 

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user resolved your issue? or let us know if you need any further assistance.
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

Hi @RichOB,

 

We wanted to kindly follow up to check if the solution provided by the user resolved your issue.

If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.

 

Thanks and regards,

Anjan Kumar Chippa

rajendraongole1
Super User
Super User

Hi @RichOB  -Create a DAX measure that only takes the latest Total_Arrears value per Property

 

Please find the attached pbix file FYR.

 

Hope this helps.

 





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

Proud to be a Super User!





Elena_Kalina
Solution Supplier
Solution Supplier

Hi @RichOB 

Please try to create a measure

Latest_Arrears = 
VAR LatestDatesPerProperty =
    SUMMARIZE(
        'Table',
        'Table'[Property],
        "MaxDate", MAX('Table'[Transaction_Date])
    )
RETURN
    SUMX(
        LatestDatesPerProperty,
        VAR CurrentProperty = 'Table'[Property]
        VAR CurrentMaxDate = [MaxDate]
        RETURN
            CALCULATE(
                SUM('Table'[Total_Arrears]),
                FILTER(
                    'Table',
                    'Table'[Property] = CurrentProperty &&
                    'Table'[Transaction_Date] = CurrentMaxDate
                )
            )
    )

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.