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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rsaldanha
Frequent Visitor

Return my last price

Hello,

I have a huge problem and I'm asking you your dedication to help me. 🙂

The problem is:

I have a table with date and prices and I want to populate a visual (table or line chart) with this prices for each day of my calendar table.

So far I just could create a measure but only the days which have price in the Price Table shows in my visual.

I need that measure results like this example:

My exampleMy example

 

Please, look this pbix file for example Pbix file 

 

Thank you in advance.

I'm sorry if this is not a new problem but I could't find any similar in this forum.

 

 

 

1 ACCEPTED SOLUTION

@rsaldanha

Are you expecting a result like the one below? The last available price is picked if no price found for the current date. you can have multiple products. You can remove Table A and B.

You can download the file: HERE

Fowmy_0-1597773942672.png

________________________

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

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@rsaldanha 

Check the attached file, you can adapt as per your file:

You can download the file: HERE



Fowmy_0-1597769811917.png

Fowmy_1-1597769826202.png

 

________________________

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

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, LinkedIn

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thank you @Fowmy.
I think I understood what you did with powerquery and I'm appreciated but I'm expecting a measure.

I have thousands of Products and one table with all prices. What I'm trying to do is a line chart with x-axis (date) and y-axis (price at that date) using a slicer to filter by product.

In the future a will do some calculation with this price at date, for example, multiply to quantity of products.

 

I did a simple pbix file to describe better what is my goal, File 
Thank you a lot for your work to help me.

 

 

 

 

@rsaldanha

Are you expecting a result like the one below? The last available price is picked if no price found for the current date. you can have multiple products. You can remove Table A and B.

You can download the file: HERE

Fowmy_0-1597773942672.png

________________________

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

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube, Linkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.