Hi Anitha, it's an easy procedure.
Follow the below steps:
1. Create a parameter to choose the type of chart.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=18046029757611822188)
2. Now create a calculated field and use the field as below for each differing from the chart name.
IF [CHART]="Bar" Then SUM([Profit])
ELSE NULL END
![](https://www.edureka.co/community/?qa=blob&qa_blobid=5051781963529478060)
3. Now place the created chart fields in the shelf.
![](https://www.edureka.co/community/?qa=blob&qa_blobid=6804642244203706475)
4. Create a dual axis graph with the fields that are created and clear all lines and headers
![](https://www.edureka.co/community/?qa=blob&qa_blobid=7407682344927976325)
![](https://www.edureka.co/community/?qa=blob&qa_blobid=16798619000505041265)
You can now change your visual using parameter.
Hope it helps!