Variables include in the iFrame

How can I include the variables within the iframe? So I get a dynamic dashboard…i use mssql as data source.
I was able to use the iframe but it does not include the variables I created