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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
kpatel49
Frequent Visitor

Calculate # of transactions per user per month

Hey Guys, 

I have a purchase table that shows Purchase Date, Purchase ID, User ID, and Purchase Amount.

ie:

DatePurchase IDUser IDAmount

5/1/2022

P315
5/3/2022P4123
6/1/2022P5115
4/1/2022P1216
4/18/2022P2218
6/2/2022P62100
6/2/2022P72120


My objective is to count the number of users per month that have made over 13 transcations, and spent over $1,000.  So basically i need to calculate per month how many transactions each unique user made as well as sum up how much each user spent each month.  And then from there I only want to count the users that had more than 13 transaction and spent over 1000 for that specific month. 
Trying to figure the best way to calculate this.  Any help would be great

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@kpatel49 , try a measure like

 

countx(filter(summarize(Table, Table[User], Table[Month Year] , "_1", countrows(Table), "_1", sum(Table[Amount])), [_1] >13 && [_2] > 1000),[User])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@kpatel49 , try a measure like

 

countx(filter(summarize(Table, Table[User], Table[Month Year] , "_1", countrows(Table), "_1", sum(Table[Amount])), [_1] >13 && [_2] > 1000),[User])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors