Forum Discussion

Suman8877's avatar
Suman8877
Advocate II
1 year ago
Solved

ON date finding Cummulative Number...

Is there way to calculate cummulative number of occurences based on the date coulmn. For example: In one table i have the information when something was created:     date       |  name 1/1/2025  ...
  • rohit1991's avatar
    1 year ago

    Hi Suman8877 

    You can do this with a cumulative (running total) measure in DAX. Here’s one simple way:

    1. Make sure you have a proper Date table in your model and relate it to your fact table [Date].

     

    2. Create a base count measure:

    Rows Count =
    COUNTROWS ( Events )

     

    3. Then create the cumulative measure:

    Cumulative Names =
    CALCULATE (
       [Rows Count],
       DATESYTD ( 'Date'[Date] )
    )

     

    4. Put Year and Month Name from your Date table on rows, and use Cumulative Names as the value.