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 have a working days table that identifies every date that is a working day, shown below:
What I want to do is create a measure that calculates difference in working days of Effective Date and Status Change Date, the two columns shown below
I tried the following code:
YourTable[DiffWorkingDays] = CALCULATE( COUNTROWS ( 'Date'), DATESBETWEEN ( 'Date'[Date], YourTable[Effective Date], YourTable[Status Change Date] – 1 ), 'Date'[Working day] = 1, ALL ( 'Date' ) )
But unfortunately, it resulted in this error:
"The following syntax error occurred during parsing: Invalid token, Line 4, Offset 158, – "
Any ideas how to fix this code ?
I need to do the following:
Solved! Go to Solution.
Hi @Anonymous ,
Change the minus sign from "–" to "-".
Hi @Anonymous ,
Change the minus sign from "–" to "-".
User | Count |
---|---|
78 | |
74 | |
43 | |
32 | |
28 |
User | Count |
---|---|
104 | |
93 | |
51 | |
51 | |
46 |