Forum Discussion
_Regina
2 years agoHelper I
ALL function not behaving as expected
Hi everyone, I have the following measure. What I am trying to do here is get the number of distinct 'onboarding ids' where there is a transaction. Onboarding ID is in a fact table named 'Onb...
- 2 years ago
The measure [_Product Net Sales Buy Sell Transaction Count] still has the date filter context active.
Maybe removing the date filtering in the definition of b will help.
VAR b = SELECTCOLUMNS ( CALCULATETABLE ( FILTER ( ALL ( 'Sales Transactions'[ACCOUNT_DIM_SYSID] ), [_Product Net Sales Buy Sell Transaction Count] > 0 ), ALL ( 'Date' ) ), "ACCOUNT_DIM_SYSID", 'Sales Transactions'[ACCOUNT_DIM_SYSID] + 0 )
AlexisOlson
2 years agoSuper User
The measure [_Product Net Sales Buy Sell Transaction Count] still has the date filter context active.
Maybe removing the date filtering in the definition of b will help.
VAR b =
SELECTCOLUMNS (
CALCULATETABLE (
FILTER (
ALL ( 'Sales Transactions'[ACCOUNT_DIM_SYSID] ),
[_Product Net Sales Buy Sell Transaction Count] > 0
),
ALL ( 'Date' )
),
"ACCOUNT_DIM_SYSID", 'Sales Transactions'[ACCOUNT_DIM_SYSID] + 0
)