Forum Discussion

manishbhamare97's avatar
manishbhamare97
Frequent Visitor
2 years ago

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.

 

 

 

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

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Icon for Super User rankSuper User

        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.