what do you mean by "change the header". You wan to have a dynamic title of table? Do you want to have a dynamic title of columns?
For both of them you can use expression and titles/ labels can be changed based on some selections, variables or even values of calculations...
You can use for example following functions
You can check what properties you chan set by table here