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
Shackwell
Helper III
Helper III

Comparing price evolution for different products in different years

Hello there,

 

I am working on the following report I just got stuck in a part and here I am asking for your support.

 

I´ve got 8 databases and the relevant columns we will be using stand as follow.

 

Each database is compound of the following ZONE (Where the product is sold) ITEM (The specific item to be sold) PRICE (I am using an average price sold in the whole zone) and I would like to add YEAR as separate buttons to be clicked. The years to be analized would be 2015 to 2023. 

 

Right now I have no problem setting this report for the year I am discussing. But I am trying to get them to be dynamic and chnage for example from 2015 to 2018 using only either a filter or button.

 

 

ZONES.  -    ITEM 1,          ITEM 2,               ITEM 3,          ITEM 4

ZONE 01      AVGPRICE      AVGPRICE.       AVGPRICE.        AVGPRICE
ZONE 02.      AVGPRICE.     AVGPRICE.      AVGPRICE.        AVGPRICE
ZONE 03.       AVGPRICE.    AVGPRICE.      AVGPRICE.         AVGPRICE

 

 

If there's more information to be provided in order to take an answer let me know.

 

Once again Im thankful for your support,

 

Shackwell,

1 REPLY 1
Sahir_Maharaj
Super User
Super User

Hello @Shackwell,

 

Can you please try this:

 

1. If you have separate databases for each year, it's advisable to combine them into one main dataset in Power BI. Add a YEAR column to each dataset and assign the respective year value. After importing each database, you can append them together using "Append Queries" in the Power Query.

2. From the visualizations pane, add a slicer to your report and drag the YEAR column into it. Add a Matrix visualization to your report (Add ZONE, ITEM, AVGPRICE). When a user selects a year from the slicer, the Matrix will automatically update to show average prices for the selected year.

 

With these steps, you should be able to select any year between 2015 to 2023 and see the average prices of items across different zones dynamically. Should you require my further assistance, please do not hesitate to reach out to me.


Did I answer your question? Mark my post as a solution, this will help others!

If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

Kind Regards,
Sahir Maharaj
Data Scientist | Data Engineer | Data Analyst | AI Engineer
P.S. Want me to build your Power BI solution? (Yes, its FREE!)
➤ Lets connect on LinkedIn: Join my network of 15K+ professionals
➤ Join my free newsletter: Data Driven: From 0 to 100
➤ Website: https://sahirmaharaj.com
➤ Email: sahir@sahirmaharaj.com
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30K readers! Sharing my knowledge about data science and artificial intelligence
➤ Explore my latest project (350K+ views): Wordlit.net
➤ 100+ FREE Power BI Themes: Download Now
LinkedIn Top Voice in Artificial Intelligence, Data Science and Machine Learning

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