Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I'm trying to usin FILTER and OR function together as shown below
countItem =
CALCULATE(
DISTINCTCOUNT('Table'[Item_Number]),
FILTER('Table','Table'[Active_Date] <= DATE(2021,10,18)),
OR(
FILTER('Table','Table'[End_Date] > DATE(2021,11,15)),
'Table'[End_Date] = BLANK()
)
)
I got this error message below
"A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed."
Please help, thanks in advance
Solved! Go to Solution.
HI @Anonymous
Try this:
countItem =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Item_Number] ),
FILTER (
FILTER ( 'Table', 'Table'[Active_Date] <= DATE ( 2021, 10, 18 ) ),
'Table'[End_Date] > DATE ( 2021, 11, 15 )
|| 'Table'[End_Date] = BLANK ()
)
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
HI @Anonymous
Try this:
countItem =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Item_Number] ),
FILTER (
FILTER ( 'Table', 'Table'[Active_Date] <= DATE ( 2021, 10, 18 ) ),
'Table'[End_Date] > DATE ( 2021, 11, 15 )
|| 'Table'[End_Date] = BLANK ()
)
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
User | Count |
---|---|
89 | |
73 | |
69 | |
64 | |
56 |
User | Count |
---|---|
97 | |
92 | |
85 | |
74 | |
68 |