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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

How do I know the total number of purchased made (Frequency) by each customer ID?

I am trying to get the RFM.

 

What DAX formula should I use to get the Frequency?

matthewmah_1-1608979539536.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Stefano,

 

I've managed to find a work around using 

Frequency = CALCULATE(DISTINCTCOUNT(Trans[RECEIPT_ID])).
 
Thanks anyway! 
 
Have a great day ahead 😃

View solution in original post

4 REPLIES 4
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

hey

you have 2 ways here

first: you could make a new table as follow: 

 table = summarize("table name", "Costumer id column","Frecuency",count("Costumer id column")

 

second:if you want it in the column as above you can try this them (this column would go in your original table, no need for a new table):

Column =
var value1 = 'Table'[costumer id]
var value2 = CALCULATE( COUNT('Table'[costumer id]),'Table'[costumer id]=value1)
return value2
 
notice adding a new column will make the value calculated for each row so you have to make sure when using that column to use a average of the value or dont summarize it in the visual to get the correct value, 
 
if this was of help let me know and luck 🙂 




Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Anonymous
Not applicable

Hi  Thanks Stefano! Seems to need a little more help here! 

Capture.JPG

strange, it works fine for me, can you pass that table with garbage data if possible to check out where its that circula reference error at. 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Anonymous
Not applicable

Hi Stefano,

 

I've managed to find a work around using 

Frequency = CALCULATE(DISTINCTCOUNT(Trans[RECEIPT_ID])).
 
Thanks anyway! 
 
Have a great day ahead 😃

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.

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.