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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
manishbhamare97
Frequent Visitor

How to refresh the data based on Yesterday's Date

Dear All,

 

I need your help in order to solve the below issue that I'm facing with Power Bi:

 

I have the columns in my data for Date, Plan (Count) , Actual (Count). I want it in a table format where I can show Yesterday's Plan vs Actual count. But during this, I don't want to consider Sundays and other Holidays. Also, the table should get automatically refreshed for yesterday's (working day) Plan vs Actual, I don't want to use manual slicer for that.

 

manishbhamare97_3-1705118476376.png

 

 

DatePlanActualHoliday/Workday
Monday, January 1, 202455Workday
Tuesday, January 2, 202443Workday
Wednesday, January 3, 2024  Holiday
Thursday, January 4, 202444Workday
Friday, January 5, 202433Workday
Saturday, January 6, 202455Workday
Sunday, January 7, 2024  Holiday
Monday, January 8, 202454Workday
Tuesday, January 9, 202454Workday
Wednesday, January 10, 202432Workday
Thursday, January 11, 2024  Holiday
Friday, January 12, 202422Workday
Saturday, January 13, 2024  Workday
Sunday, January 14, 2024  Holiday
Monday, January 15, 2024  Workday
4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Show the expected result very clearly.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi,

 

Below is my expected result:

manishbhamare97_0-1705289309932.png

Hi,

Share the download link of the PBI file.  In that PBi file, have an additional Calendar Table with a column indicating whether the date is a Holiday or not.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Have you considered using LASTNONBLANK instead?

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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