Forum Discussion
Count new items per day
Hi,
I have a table with 4 columns: itemID, CreationDate, Date, Visits
I want to display in a chart, the number of new idems (new itemIDs) per Day.
I tried it like this, but it does not work:
Count new items = CALCULATE(DISTINCTCOUNT(AnalyticsView[ItemID])
, FILTER( ALL( AnalyticsView)
, AnalyticsView[CreationDate] = AnalyticsView[Date])
)
I used distinctcount because the table contains a row for each day with the visits ... so an item with its ID and creation date is multiple times in the table because of the "date" and "visit" colum (if the item was visited on multiple days).
In my chart I use "Date" for X and i want to use "Count new items" for Y.
Can you help me?
Anna
2 Replies
- Arul
Super User
- Anna123456Frequent Visitor
An item is new on the day of its creation (creation day).
Example:
Item A, creationday 11.03.2022
Item B, creationday 12.03.2022
Item C, creationday 11.03.2022
- Solution (amount of new items):
11.03.2023: 212.03.2023: 1