Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi there
How to calculate number of working days for each month of the year, where
the current month have to show number of days between 1st day of month and NOW().
For the working dates I have additional column with indicator of where is working day or not.
Solved! Go to Solution.
Hi @mrslyfox,
Try this formula please:
MeasureSumWorkdays = CALCULATE ( SUM ( 'Calendar'[WorkingDay] ), FILTER ( 'Calendar', 'Calendar'[LINK_Date] <= TODAY () ) )
Best Regards!
Dale
Hi @mrslyfox,
How do you want to show them up? As a Calculated column or a measure?
As a Calculated Column, you need a [Month] column:
TotalWorkdayPerMonth = CALCULATE ( COUNT ( DateTable[IsWorkday] ), FILTER ( ALLEXCEPT ( 'DateTable', DateTable[Month] ), 'DateTable'[IsWorkday] = 1 && 'DateTable'[Date] <= TODAY () ) )
As a measure, we can sum up indicator of workday directly due to it's 0 and 1.
MeasureSumWorkdays = CALCULATE ( SUM ( DateTable[IsWorkday] ), 'DateTable'[Date] <= TODAY () )
Best Regards!
Dale
Hi @mrslyfox,
Try this formula please:
MeasureSumWorkdays = CALCULATE ( SUM ( 'Calendar'[WorkingDay] ), FILTER ( 'Calendar', 'Calendar'[LINK_Date] <= TODAY () ) )
Best Regards!
Dale
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
96 | |
80 | |
67 | |
62 |
User | Count |
---|---|
138 | |
107 | |
104 | |
82 | |
63 |