Hello Raunak,
Please follow the below steps.
1. Take Class, Product Value, Agent, Count and Revenue value in Query 1 and Class and Product Value in Query 2.
2. In Query 1 create a Query level Filter on Object Class with filter type InList and Select Object from another Query and select the Class from Query2. In this way you will only fetch Class in Query1 that are in Excel only.
3 Merge the Dimension Class and Product Value so that you have a Full Outer Join and you will be able to see the results that you need.
Regards
Niraj