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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.