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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Mond_Ed07
Frequent Visitor

Interaction count from Excel to Power BI

Hello, 

I want to replicate the results on what I did in MS Excel into Power BI but Im new to Power BI and dont have much experience on DAX measures yet. 

Mond_Ed07_0-1713167538059.png

I want the Interaction Counter to be like the one on the image above.
The image below is the measure that I use and the result that I get.

Mond_Ed07_3-1713167813578.png

 

Mond_Ed07_2-1713167713169.png


Can somebody help me on how to get the same result on the Excel into Power BI? Any Input will be much appreciated.

Thank you.

 

2 ACCEPTED SOLUTIONS
ryan_mayu
Super User
Super User

@Mond_Ed07 

you can try this

Column = countx(FILTER('Table','Table'[account]=EARLIER('Table'[account])&&int('Table'[createddate])=int(EARLIER('Table'[createddate]))&&'Table'[createddate]<=EARLIER('Table'[createddate])),'Table'[createddate])
11.PNG
 
pls see the attachment below
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

maybe you can try to do this in PQ 

= Table.AddColumn(#"Inserted Date","Rank",each Table.RowCount(Table.SelectRows(#"Inserted Date",(x)=>x[createddate]<[createddate] and x[account]=[account] and x[Date]=[Date]))+1)

11.PNG

 

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
Mond_Ed07
Frequent Visitor

Hello,

Just finished loading the PQ that you sent and it worked. The loading of the data took almost 2 days to complete since I have 2.7M rows but its finally done and here is the result.

Mond_Ed07_0-1713418269519.png


Big thanks to @ryan_mayu for his solution on this thread. You are a life saver. Thank you so much!

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




ryan_mayu
Super User
Super User

@Mond_Ed07 

you can try this

Column = countx(FILTER('Table','Table'[account]=EARLIER('Table'[account])&&int('Table'[createddate])=int(EARLIER('Table'[createddate]))&&'Table'[createddate]<=EARLIER('Table'[createddate])),'Table'[createddate])
11.PNG
 
pls see the attachment below
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks for the quick response on my post @ryan_mayu. I tried the measure on my end but I got an error.

Mond_Ed07_1-1713246843680.png

my work laptop only have 16GB RAM.
Is there a work around so that this error wont show up?

maybe you can try to do this in PQ 

= Table.AddColumn(#"Inserted Date","Rank",each Table.RowCount(Table.SelectRows(#"Inserted Date",(x)=>x[createddate]<[createddate] and x[account]=[account] and x[Date]=[Date]))+1)

11.PNG

 

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I'll try this one on PQ. Still loading since the table that Im using has 2.7M rows on it. This might take a while to load but I'll update on the results once it is done.

I'll keep you posted @ryan_mayu . Thanks a bunch! Have a great day!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.