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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.