. dataex fecha TotalDéficitCuantitativo region Tend Pobtotal if region==1 & fecha<2025

----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input float fecha double TotalDéficitCuantitativo float(region Tend) long Pobtotal
1996  19357.99999999999 1  0 210645
1997                  . 1  1 219200
1998 17247.000000000055 1  2 227767
1999                  . 1  3 236298
2000 20785.999999999985 1  4 244863
2001                  . 1  5 251704
2002                  . 1  6 246265
2003 22335.999999999996 1  7 251625
2004                  . 1  8 257394
2005                  . 1  9 263141
2006 18334.999999999985 1 10 268976
2007                  . 1 11 275014
2008                  . 1 12 281334
2009              12657 1 13 287773
2010                  . 1 14 294172
2011              11821 1 15 301143
2012                  . 1 16 308251
2013              11095 1 17 314818
2014                  . 1 18 321678
2015              11713 1 19 328417
2016                  . 1 20 334865
2017              14234 1 21 342129
2018                  . 1 22 354940
2019                  . 1 23 368906
2020                  . 1 24 382773
2021                  . 1 25 391165
2022                  . 1 26 396697
2023                  . 1 27 401588
2024                  . 1 28 406287
end
format %ty fecha
------------------ copy up to and including the previous line ------------------
Hello