Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anna123456
Frequent Visitor

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 2
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

Arul
Super User
Super User

@Anna123456 ,

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

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.