Using multiple measurments to create panel

In my Influx I have two (2) measurements called: jenkins_data and jenkins_custom_data. I want to create a view that uses fields from both measurements. Something like this:

SELECT count("build_successful") FROM "jenkins_data" WHERE "jenkins_custom_data.branch"='master' AND "build_result"='SUCCESSFUL'

Note that build_successful is a field in jenkins_data and build_result is a tag in jenkins_data while branch is a field of jenkins_custom_data

Is it possible to do such combination?