Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello
I am struggling with this dax and getting the above error. I cannot work out what is wrong with my syntax. Any help would be gratefully received:
Solved! Go to Solution.
@SalCambs , Try using
CIC at End of Month =
CALCULATE(
COUNTROWS('Annex A List 8 v2'),
'Annex A List 8 v2'[Date started to be Looked After] <= EOMONTH(MAX(DateTable[Date]), 0),
OR(
'Annex A List 8 v2'[Date Ceased to be Looked After] >= EOMONTH(MAX(DateTable[Date]), 0),
ISBLANK('Annex A List 8 v2'[Date Ceased to be Looked After])
)
)
Proud to be a Super User! |
|
Try:
CIC at End of Month =
CALCULATE (
COUNTROWS ( 'Annex A List 8 V2' ),
'Annex A List 8 V2'[Date Started to be Looked After] <= EOMONTH ( MAX ( DateTable[Date] ), 0 )
&& (
'Annex A List 8 V2'[Date Ceased to be Looked After] > EOMONTH ( MAX ( DateTable[Date] ), 0 )
|| ISBLANK ( 'Annex A List 8 V2'[Date Ceased to be Looked After] )
)
)
If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Try:
CIC at End of Month =
CALCULATE (
COUNTROWS ( 'Annex A List 8 V2' ),
'Annex A List 8 V2'[Date Started to be Looked After] <= EOMONTH ( MAX ( DateTable[Date] ), 0 )
&& (
'Annex A List 8 V2'[Date Ceased to be Looked After] > EOMONTH ( MAX ( DateTable[Date] ), 0 )
|| ISBLANK ( 'Annex A List 8 V2'[Date Ceased to be Looked After] )
)
)
If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
@SalCambs , Try using
CIC at End of Month =
CALCULATE(
COUNTROWS('Annex A List 8 v2'),
'Annex A List 8 v2'[Date started to be Looked After] <= EOMONTH(MAX(DateTable[Date]), 0),
OR(
'Annex A List 8 v2'[Date Ceased to be Looked After] >= EOMONTH(MAX(DateTable[Date]), 0),
ISBLANK('Annex A List 8 v2'[Date Ceased to be Looked After])
)
)
Proud to be a Super User! |
|
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
8 | |
6 |