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
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
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.