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

Retained Deposits DAX

Hi all,

 

I am trying to calculated all of our "Retained First Time Deposits" which are basically all customers who made their first deposit in month 0 and then went on to make another deposit in month 1.

 

I currently have this...

 

Retained FTDs = COUNTROWS (
FILTER (
ADDCOLUMNS (
VALUES ( 'Fact Transactions'[PlayerKey] ),
"LastMonthTotal", CALCULATE (
COUNTROWS ('Fact Transactions'),
FILTER (
ALL ('Dim Date'),
'Dim Date'[MonthIndex]=MIN('Dim Date'[MonthIndex])-1
)
),
"PreviousMonthTotal", CALCULATE (
COUNTROWS ('Fact Transactions'),
FILTER (
ALL ('Dim Date'),
'Dim Date'[MonthIndex]=MIN('Dim Date'[MonthIndex])-2),'Fact Transactions'[isInitialDeposit] = TRUE)
),NOT(ISBLANK([LastMonthTotal])) && NOT(ISBLANK([PreviousMonthTotal]))))
 
Note:
MonthIndex  = Running number for each month
 
Currently, the numbers it is returning are lower than they should be and i'm unsure as to where it's going wrong. Unfortunately, due to the sensitive nature of the data, I can't provide any samples.
 

I am new to DAX so any help would be greatly appreciated.

 

Thanks in advance,

Tom

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@tomhopewell ,

 

You may try using INTERSECT.

https://community.powerbi.com/t5/Desktop/Want-to-calculate-number-of-new-customers-per-every-month-o...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@tomhopewell ,

 

You may try using INTERSECT.

https://community.powerbi.com/t5/Desktop/Want-to-calculate-number-of-new-customers-per-every-month-o...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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