Forum Discussion
Ruksuro
9 years agoHelper III
Trend from History Table
Hi Community! Apologies if this has been raised previously or is very simple but I can't seem to find a clear soltuion to the following... Given a source history table (think subscriptions to...
- 9 years ago
You may refer to the following DAX that creates a new table.
Table = ADDCOLUMNS ( CALENDARAUTO (), "Count", CALCULATE ( DISTINCTCOUNT ( Table1[Customer ID] ), FILTER ( Table1, Table1[Subscribed From] <= [Date] && ( Table1[Subscribed Until] > [Date] || ISBLANK ( Table1[Subscribed Until] ) ) ) ) )
v-chuncz-msft
9 years agoCommunity Support
You may refer to the following DAX that creates a new table.
Table =
ADDCOLUMNS (
CALENDARAUTO (),
"Count", CALCULATE (
DISTINCTCOUNT ( Table1[Customer ID] ),
FILTER (
Table1,
Table1[Subscribed From] <= [Date]
&& (
Table1[Subscribed Until] > [Date]
|| ISBLANK ( Table1[Subscribed Until] )
)
)
)
)
kafil10
9 years agoFrequent Visitor
i tried this the figures don't much up really and the table begun from 01/01/1899 ??
Table =
ADDCOLUMNS (
CALENDARAUTO();
"Count"; CALCULATE (
COUNT ( Merge1[CallID] );
FILTER (
Merge1;
Merge1[NewColumn.DateAssign] <= [Date]
&& (
Merge1[NewColumn.DateResolv] > [Date]
|| ISBLANK ( Merge1[ClosedDate] )
)
)
)
)