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

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

Reply
Dashmir
New Member

Graph with multiple series

Context
I have two tables. I use table 2 to divide the value by the quantity.

Table 1 Column Names

RefCodeFood?ClassCategory HeaderCategoryValueYearSource
Testk00022Chocolate0SweetSalesQuarter 11,000.002016-17XX


Table 2 Column Names 
Code is unique.

CodeQuantity
k00022100


Measure
In PowerBI I create a measure to divide Value / Quantity.

Graph
X axis = Year

I want to have the graph have two lines. One line for a particular food type e.g. chocolate and the cost per year.
I also want to have another line which is the averge of the value/quantity per class. So for blueberry which has a class of fruit, I want to have the average of fruit as a second line.

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @Dashmir ,

 

Is your issue solved now?If not,could you pls share some sample data with expected output for test?

 

Remember to remove the confidential information.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

v-kelly-msft
Community Support
Community Support

Hi @Dashmir ,

 

Create a column as below:

quantity = LOOKUPVALUE('Table (2)'[Quantity],'Table (2)'[Code],'Table'[Code],0)

And you will see:

v-kelly-msft_0-1619423868553.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Kudoed Authors