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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.