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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
DorianRodrigo
Regular Visitor

Bar plot using only the latest data of a column with diferent records

I have a table (time relation)  about oil rate production for several wells and I need to do a bar plot using only the latest oil rates (OIL_VOL_RATE) for the Top Ten oil producers. This plot must be updated for each day, because every day we have new production data for some wells (not every well can be test daily). Data.PNG

1 ACCEPTED SOLUTION

Tks Tom, the problem was solved using a Index Table and a DAX formula.

DorianRodrigo_0-1665601162629.png

 

View solution in original post

5 REPLIES 5
tom480
Resolver I
Resolver I

It's still a scheduled refresh, right?  Here's a scheduled refresh from SQL source once a day.   Go to your dataset in Power BI service and setup scheduled refresh.

 

sql scheduled refresh.jpg

 

Tks Tom, the problem was solved using a Index Table and a DAX formula.

DorianRodrigo_0-1665601162629.png

 

That's great!  Also looks great too!

tom480
Resolver I
Resolver I

Hi @DorianRodrigo ,

 

If you save this excel file to OneDrive and setup a scheduled refresh (daily), you can achieve the deserved results.  For the bar chart, use your filters and select the top 10 (sample bar chart with different data shown below).

 

top10barchart.jpg

 

If this helps, please mark as a solution!  Always glad to help!  Tom

the data is conected to a SQL server, the data is updating each 24hrs, I need an option to automate the plotting, maybe a DAX to get tha latest data for each well and make the bar plot. Thanks Tom!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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