Forum Discussion
Anonymous
7 years agoNot applicable
Count rows before a given date for each row
Hi, I'm facing a problem with a table in which I'd like to calculate the number of rows that exist until a given date. My table has the following structure: Unique_identifier Updatio...
- 7 years ago
You could add a calculated column (Table name is "Registries")
Count = VAR UpdationDate = Registries[Updation_date] RETURN COUNTROWS( FILTER(Registries,Registries[Updation_date] <= UpdationDate))That should result in:
Hope this helps
JJ
DoubleJ
7 years agoSolution Supplier
You could add a calculated column (Table name is "Registries")
Count =
VAR UpdationDate = Registries[Updation_date]
RETURN
COUNTROWS(
FILTER(Registries,Registries[Updation_date] <= UpdationDate))That should result in:
Hope this helps
JJ
MattAllington
7 years agoCommunity Champion
You could add a column, but I recommend you don't.
Learn about calculated columns vs measures in Power BI