Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

Dynamically change Y axis based on input from drop down or list select

Dear Power BI users, 

 

I would like to change the Y-axis in the Line and Clustered Column chart in Power BI Desktop dynamically. Now, I have two plots. 

 

1. Sales Forecast vs. Months

2. Actual Sales vs. Months

 

On my X-axis is months. and Y-Axis is the value which is Sales Forecast or Actual Sales.

 

Do you have any ideas how I can achieve this? One idea I have is to change the table structure I have.  To explain, I will start with showing my table. Below are the columns that I have in my table.

 

Month  |  Sales Forecast | Actual Sales | Budget

 

 

Do I have to consolidate Sales Forecast column and Actual Sales column under one column like the one below? In this way I believe I can achieve what I wanted. But some other solutions within Power BI without distrubing the table structure would be great.

 

Month | Type | Value | Budget

May  | Sales Forecast | 1000 | 2000

May | Actual Sale s | 900 | 2000

June | Sales Forecast | 1200 | 2200 

June | Actual Sales | 1100 | 2200

 

Looking forward for your replies :-)

 

Sincere Regards, 

Sai Srinivas