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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors