Forum Discussion

Anna123456's avatar
Anna123456
Frequent Visitor
3 years ago

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's avatar
    Arul
    Icon for Super User rankSuper User

    Anna123456 ,

    What is the criteria to identify that the particular item is new?

    Thanks,

    Arul

  • Anna123456's avatar
    Anna123456
    Frequent 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: 2

    12.03.2023: 1