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 September 15. Request your voucher.
Hi
We have the next calculated column to calculate the count of workingsdays between 2 dates.
CALCULATE(
COUNTROWS(Calender),
DATESBETWEEN(Calender[Date],'table1'[first_date],table1'[second_date] -1),
Calender[isworkday] = 1)
Now we want to convert this formula to a measure so we are more flexibel in the calculations.
maybe something with an averagex?
Have someone any idea?
Solved! Go to Solution.
Hi @Anonymous ,
Based on your description, you have create a column like [IsWorkingDay] using 1 to represent Working Days. You can try DAX formula like below:
Measure = CALCULATE(
COUNTROWS('Calender'),
DATESBETWEEN('Calender'[Date],SELECTEDVALUE('Table1'[first_date]),SELECTEDVALUE('Table1'[second_date])-1),
'Calender'[IsWorkDay]= 1)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Based on your description, you have create a column like [IsWorkingDay] using 1 to represent Working Days. You can try DAX formula like below:
Measure = CALCULATE(
COUNTROWS('Calender'),
DATESBETWEEN('Calender'[Date],SELECTEDVALUE('Table1'[first_date]),SELECTEDVALUE('Table1'[second_date])-1),
'Calender'[IsWorkDay]= 1)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
68 | |
63 | |
59 | |
54 | |
28 |
User | Count |
---|---|
181 | |
82 | |
63 | |
47 | |
43 |