Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi team,
I have this challenge, I’ve new products that I need to understand their performance this year, but as a reference, as I don’t have information of last year, business wants to compare it with similar older products, for example see table 1:
So I have to prepare table 2 with this information:
Where Sales Last Year for New Products in fact doesn’t exist, so I must fill with the old similar product sales.
I have defined de first table, but I’m not figuring out how to do the DAX to generate the second table, do you know how can I do this please?
Thank you!
Solved! Go to Solution.
Hi @LarBo ,
See VentasBase1,Not elegant - hard coded the number in, tried V for Juan, which gives us 51k, but does not substitute in for the hard code.May have to work with Ventas G1 . Because of the relationship, should be able to follow that to get the replacement value. Hopefully this will get you down the right route.
Nathaniel MY PBIX PBIX FILE
Proud to be a Super User!
Hi @LarBo ,
Where does the sales last year info reside?
Please read this post to get your question answered more quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Nathaniel
Proud to be a Super User!
Hi Nathaniel, sorry you are right, I've created a set of data as example, hope this is more clear, if not I will gladly try again.
I have sales amount recorded for two years from several sellers (name column), information attached in Datos 1.xlsx first tab, and I need to evaluate performance in Year 2 against Year 1, but in the cases I don’t have selling information for Year 1, Luis and Julia, I will need to use another sellers Year 1 information as from Juan and Rita respectively, this relation is given in table Datos 1.xlsx second tab, too.
I need to figure it out how to do the DAX to fill 51.073 in Year 1 for Luis and 40.286 for Rita, so I will be able to measure the performance for each one, I attach pbix file, do you know how can I do this please?
Thank you!
Hi @LarBo ,
See VentasBase1,Not elegant - hard coded the number in, tried V for Juan, which gives us 51k, but does not substitute in for the hard code.May have to work with Ventas G1 . Because of the relationship, should be able to follow that to get the replacement value. Hopefully this will get you down the right route.
Nathaniel MY PBIX PBIX FILE
Proud to be a Super User!
Hi @Nathaniel_C, thank you a lot, you give me the solution I was looking for, I just added one sentence to change the hard coded number you write for 51K, modified meassure from:
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |