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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
damj
Frequent Visitor

Counting rows from incrementing date

Hi 

Is there a way to count rows from a specific date ( say 1/9-2019 ) to today ( 19/9-2019 ) incrementing by each day?

adding some filter.

principle is shown in figure below, but should be performed in existing table not a new like illustrated in the figure in the bottom. 

Udklip.PNG

Bear in mind the table i want to count the rows is the existing table  which look like this.

nyt billed.PNG

hope you guys can help.

4 REPLIES 4
Icey
Community Support
Community Support

Hi @damj ,

 

You can create a Date Table like so:

Date Table = CALENDAR ( DATE ( 2019, 1, 1 ), TODAY () )

Then, create a column in Date Table.

Column = 
CALCULATE (
    COUNTROWS ( 'Table' ),
    'Table'[Oprettet_rev] >= DATE ( 2019, 9, 1 )
        && 'Table'[Oprettet_rev] <= EARLIER ( 'Date Table'[Date] )
)

today2.PNG

today.PNG

And you can also create a measure like so:

Measure = 
CALCULATE (
    COUNTROWS ( 'Table' )+0,
    'Table'[Oprettet_rev] >= DATE ( 2019, 9, 1 )
        && 'Table'[Oprettet_rev] <= TODAY ()
)

today3.PNG

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

damj
Frequent Visitor

Hi @Icey .

its not possible to calculate without having to generate a new table?

I wanna be able to count for each day within the existing table. 

Icey
Community Support
Community Support

Hi @damj ,

 

Maybe you can try this: 

Column 2 = 
CALCULATE (
    COUNTROWS ( 'Table' ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Oprettet_rev] >= DATE ( 2019, 9, 1 )
            && 'Table'[Oprettet_rev] <= EARLIER ( 'Table'[Oprettet_rev] )
    )
)

today-follow.PNG

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

damj
Frequent Visitor

@Icey  is it possible to relate to the external calender  through the earlier function?

to achive a count for each day.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors