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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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