In Calgary, as of 2016, only 56.3% of dwellings were detached homes. That number has likely fallen, and doesn't account for multi-generational homes:
https://regionaldashboard.alberta.ca...mily-houses/#/
If you're going to look at income stats vs. affordability, you should look at households who actually have single detached homes.