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
Swathykorivi
Frequent Visitor

need to create a report to get the daily attrited Members based on the previous month data

I am new to power Bi, where i need to create a report for daily attrited members based on the previous month data.

I daily snapshot dates, new members acquired each snapshot date.

I need to calculate last month member as of last month.

here is the logic i need to get.

Last month members using the last month snapshot date.

daily net = total members - last month members

closed = new members - daily net, i have atatched the data for reference, can you please help.2024-08-29_16-23-35.png

 

1 ACCEPTED SOLUTION
ahadkarimi
Solution Specialist
Solution Specialist

Hi @Swathykorivi, try these measures below, and if you encounter any issues, let me know.

 

LastMonthMembers = 
CALCULATE(
    SUM('Table'[New Members]),
    FILTER(
        'Table',
        'Table'[Date] = 
        CALCULATE(
            MAX('Table'[Date]),
            MONTH('Table'[Date]) = MONTH(TODAY()) - 1
        )
    )
)
DailyNet = SUM('Table'[Total accounts]) - [LastMonthMembers]
Closed = SUM('Table'[New Members]) - [DailyNet]

 

 

Did I answer your question? If so, please mark my post as the solution! ✔️
Your Kudos are much appreciated! Proud to be a Solution Supplier!

View solution in original post

3 REPLIES 3
Swathykorivi
Frequent Visitor

@ahadkarimi Thank you for the solution

@Swathykorivi, You're welcome! Glad I could help!

ahadkarimi
Solution Specialist
Solution Specialist

Hi @Swathykorivi, try these measures below, and if you encounter any issues, let me know.

 

LastMonthMembers = 
CALCULATE(
    SUM('Table'[New Members]),
    FILTER(
        'Table',
        'Table'[Date] = 
        CALCULATE(
            MAX('Table'[Date]),
            MONTH('Table'[Date]) = MONTH(TODAY()) - 1
        )
    )
)
DailyNet = SUM('Table'[Total accounts]) - [LastMonthMembers]
Closed = SUM('Table'[New Members]) - [DailyNet]

 

 

Did I answer your question? If so, please mark my post as the solution! ✔️
Your Kudos are much appreciated! Proud to be a Solution Supplier!

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.