Much of the information on this page has drawn on the following very thorough guide to citing data, which includes an extensive bibliography should you wish to do further reading on the subject:
Statistics Canada has a reference building tool that can help you identify which elements to include for a wide range of data and statistics products.
The DOI Citation Formatter tool will generate a citation based on a DOI in the citation style of your choice. Make sure to double-check that all of your elements have ended up in the right place!
This guide from SFU shows citation examples in APA style of tables and figures drawing from multiple data sources.