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
Sheena
New Member

Year by Year Comparison Graph

Hello, I have a 2018 data set and 2019 data set that I added to the axis and values. Whichever data set I add second does not provide the actual values for each choice, but adds the total of all choices for each choice. For example, if 2019 data was added second to the values field, and there were 10 in North America, 12 in South America, 15 in Africa, and 8 in Europe, instead of showing the individual data for each country, it shows 45 for all countries. Does anyone know how to fix this?FieldsFieldsGraphGraph

1 ACCEPTED SOLUTION

Hello @Sheena 

You will either want to combine the two tables into one using power query or create a locations table that will join the two data tables together.

You can create a locations table with something like this:

Locations =
DISTINCT (
    UNION (
        DISTINCT ( '2018Table'[Locations] ),
        DISTINCT ( '2019Table'[Locations] )
    )
)

Then join each of your data tables into it.

Locations.jpg

Then you use the locations from the new table in your chart.

View solution in original post

2 REPLIES 2
parry2k
Super User
Super User

@Sheena seems like your data is not read to visualize the way you want, share how your data table looks like and provide sample data to get you the solution.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hello @Sheena 

You will either want to combine the two tables into one using power query or create a locations table that will join the two data tables together.

You can create a locations table with something like this:

Locations =
DISTINCT (
    UNION (
        DISTINCT ( '2018Table'[Locations] ),
        DISTINCT ( '2019Table'[Locations] )
    )
)

Then join each of your data tables into it.

Locations.jpg

Then you use the locations from the new table in your chart.

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.