Forum Discussion

Dicko's avatar
Dicko
Helper II
5 years ago
Solved

count per date

I want to show the number of products sold per date in a table visual.   I've got a measure NrOfProducts = COUNTROWS(Products) Also I've got Products[sold on] of type date/time (not a Date Hierar...
  • v-xulin-mstf's avatar
    5 years ago

    Hi Dicko,

     

    You can try measure as:

    Measure = 
    CALCULATE(
        COUNTROWS('Products'),
        FILTER(
            ALL('Products'),
            'Products'[Sold on]=MAX('Products'[Sold on])
        )
    )

     

    You can also removing other columns with different values from the table visual, and then your original measure will work well.

     

    Best Regards,
    Link

     

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