There is no direct passenger train route between Salt Lake City, Utah, and Milwaukee, Wisconsin.
Amtrak’s California Zephyr serves Salt Lake City (to Chicago/Emeryville), and the Hiawatha/Empire Builder serve Milwaukee/Chicago, but connecting requires a long layover in Chicago and totals 30+ hours. Flying (2.5 hrs) or driving (1,400 mi, ~21 hrs) are more practical.