The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I want to apply DAX formula to calculate the next_business_day in a Calendar table.
If the date is holiday (i.e. if_work_day = 0) then next_business_day = date+next working day.
What should be the DAX formula for this?
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Next_business_day CC =
MINX (
FILTER (
'Calendar',
'Calendar'[Date] > EARLIER ( 'Calendar'[Date] )
&& 'Calendar'[If_work_day] = 1
),
'Calendar'[Date]
)
Hi,
Please check the below picture and the attached pbix file.
It is for creating a new column.
Next_business_day CC =
MINX (
FILTER (
'Calendar',
'Calendar'[Date] > EARLIER ( 'Calendar'[Date] )
&& 'Calendar'[If_work_day] = 1
),
'Calendar'[Date]
)
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
8 | |
7 |