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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.