Forum Discussion
WardJ
7 years agoRegular Visitor
add column based on another column
I've serarched for an answer to this but being new to Power BI i've really struggled to try find a solution I can translate to my own needs. I have a table with a list of ID's and date of entry: ...
- 7 years ago
Hi,
Try this calculated column formula
=CALCULATE(COUNTROWS(Data),FILTER(Data,Data[ID]=EARLIER(Data[ID])&&Data[Date Entered]<=EARLIER(Data[Date Entered])))
The result should be 1,1,2,3,2,4,1
Ashish_Mathur
Super User
7 years agoHi,
Try this calculated column formula
=CALCULATE(COUNTROWS(Data),FILTER(Data,Data[ID]=EARLIER(Data[ID])&&Data[Date Entered]<=EARLIER(Data[Date Entered])))
The result should be 1,1,2,3,2,4,1
WardJ
7 years agoRegular Visitor
Thank you Ashish_Mathur that works perfectly :-)
- Ashish_Mathur7 years ago
Super User
You are welcome.