Forum Discussion
jdballard30
Helper II
7 years agoCreate a measure with a filter
I have the following data; it's a table that is denormalized and is the result of the join of App and Transaction. AppID TransactionID DaysBetweenEvents DEF 123 3 DE...
- 7 years ago
Hi jdballard30,
You also can use a measure instead. There could be two approaches.
Measure = AVERAGEX ( DISTINCT ( SELECTCOLUMNS ( ProgramTransactions, "Col1", [AppId], "Col2", [DaysBetweenEvents] ) ), [Col2] )Measure 2 = AVERAGEX ( SUMMARIZE ( 'ProgramTransactions', 'ProgramTransactions'[AppId], 'ProgramTransactions'[DaysBetweenEvents] ), [DaysBetweenEvents] )Best Regards,
Dale
v-jiascu-msft
Microsoft Employee
7 years agoHi jdballard30,
You also can use a measure instead. There could be two approaches.
Measure =
AVERAGEX (
DISTINCT (
SELECTCOLUMNS (
ProgramTransactions,
"Col1", [AppId],
"Col2", [DaysBetweenEvents]
)
),
[Col2]
)
Measure 2 =
AVERAGEX (
SUMMARIZE (
'ProgramTransactions',
'ProgramTransactions'[AppId],
'ProgramTransactions'[DaysBetweenEvents]
),
[DaysBetweenEvents]
)
Best Regards,
Dale