Forum Discussion
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.
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.
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.
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])pls see the attachment belowmaybe 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)
pls see the attachment below
6 Replies
- ryan_mayuSuper User
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])pls see the attachment below- ryan_mayuSuper User
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)
pls see the attachment below
- Mond_Ed07Frequent 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.
Big thanks to ryan_mayu for his solution on this thread. You are a life saver. Thank you so much!- ryan_mayuSuper User
you are welcome