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
MattAllington
7 years agoCommunity Champion
This is a very complex issue that I wont go into. The solution to your problem is to
- add a calendar table
- link the tables
- put the date from your calendar table in the visual
- write the same (first measure) that refers to the date in the calnedar table - it will work.
You can learn about calendar tables in Power BI at my blog