Forum Discussion

monicaalves4's avatar
monicaalves4
Regular Visitor
3 years ago
Solved

Count rows in the period between dates

Hi,   I have a table similar to the table below and I would like to make a measure that calculates how many items there are with today's and yesterday's created date.   I started by using t...
  • Jihwan_Kim's avatar
    3 years ago

    Hi,

    I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

    It is for creating a new measure.

     

     

    Items count from one day before to today: =
    CALCULATE (
        COUNTROWS ( Data ),
        Data[Type] = "Type1",
        Data[CreatedDate]
            >= TODAY () - 1
    )