I have a table (real table, not just looking like one) with multiple columns, one called Date Created and the contents are in the format, e.g., 3. Juni 2023 16:09:12 MESZ.
My goal is to count all entries in column artifact type meeting specific criteria created after a date given in form dd.mm.yyyy to, lets say, get the artifacts created this week.
I get the desired result by adding a colum column1 to table1 with formula =DATEVALUE(LEFT([@[Date Created]];LEN([@[Date Created]])-13)) in combination with =SUM(COUNTIFS(Tabelle1[Artifact Type];{"type1";"type3";"type xy"};Tabelle1[column1];">="&DATEVALUE("14.8.2024"))) in the desired cell.
However, how do I directly get the same result without the step of adding columns? I have no idea how to "evaluate/transform" the entries in Date Created "on the fly".
I am using MS Office 2019 without the possibility of using macros.
=SUMPRODUCT((Tabelle1[Artifact Type]={"type1";"type3";"type xy"})*(DATEVALUE(LEFT([@[Date Created]];LEN([@[Date Created]])-13))>=DATE(2024;8;14)))Tabelle1in front of each referenced cell and it only accepts only one argument for the artifact type. When I use the given ones I get a#N/A-error.@symbols?SUM) using Power Query.