Laura (probably too late...)
#1 Your below formula doesn't work - a closing brace is missing:
=CUBEVALUE("ThisWorkbookDataModel","[Measures].[Count of TransIds]",
"[Table1].[Rule].&[RULE66|RULE42|RULE4|RULE67|RULE50|]",
{"[Table1].[Status].&[B]","[Table1].[Date].&[2023-05-24T00:00:00]"
)
#2 To reference a cell (A1 below) inside a similar formula, syntax is:
=CUBEVALUE("ThisWorkbookDataModel","[Measures].[Count of TransIds]",
"[Table1].[Rule].&[" & A1 & "]", ...
)
#3 Wildcards are not possible as you expect. To a certain extent this can be achieved with the appropriate MDX formula - with CUBESET. Then your formula becomes something like:
=CUBEVALUE("ThisWorkbookDataModel","[Measures].[Count of TransIds]",
CUBESET(...)
)