The charging statistics data can be displayed within the Tesla app. This is a rolling 31 day average or year to date. This will display kWh you used to charge your Model Y. Cost per kWh consumed is tracked for Home, Work or Other and for Supercharging. So roughly if you use 400 kWh per 31 days; 400 kWh X 12 months for 4800 kWh and pay $0.20 per kWh (average kWh cost) for $960 per year for the electricity you used over a year to charge your Tesla vehicle. If you drive 15,000 miles per year then your cost per mile would be $960 / 15,000 = $0.064 per mile. This cost ($960) includes all kWh including charging overhead, driving, idling, preconditioning, preconditioning for Supercharging, screen time watching video and game time etc.
If you want to only look at the kWh consumed while driving (wheels up) then the Trip Odometer can be helpful. The Tesla Modle Y Trip Odometers include Trip A, Trip B (many rename Trip B to be Lifetime) mileage and consumption in kWh while driving. Of course you can also see the miles driven and the kWh used since last charge or for the current drive.