Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Build a line chart based on measures

Hello,

 

I have built a few measures for the future sales. These measures need user inputs so have to be built separately: Sales_2021, sales_2022, sales_2023.

 

Now I would like to draw a line chart and this line chart can change when user inputs different numbers: X-axis would be year, y-axis would be sales.

 

Would you please help?

 

Thank you!!

2 REPLIES 2
vanessafvg
Super User
Super User

can you provide some dummy data?




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

for example,

 

I have three created table:

Table 1:

parmeter: sales_2021_input - input from 1-1000

measure: sales_2021_value = SELECTEDVALUE(sales_2021_input)

 

Similar for Table 2 and 3 but the variable names are 2022, 2023.

 

Now I want to build a line chart with x-axis as year, y -axis as the sales_2021_value, sales_2022_value, sales_2023_value

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors