Forum Discussion

yaabandoh's avatar
yaabandoh
Frequent Visitor
5 years ago
Solved

Count Date

Please I need help: I want to show that number of products that were relaunched in a particular month. I want to display this on a bar chart with my x-axis as the month-year, with the bar showing the number of products relaunched. There are some products that were not relaunched, and some months where no product was relaunched. Below is a sample Table:

Product CodeDateDate Relaunched
A17/1/2020 
B17/1/202010/15/2019
C17/1/20209/24/2019
A27/1/202010/4/2019
B27/1/202010/3/2019
C27/1/20205/29/2020
A37/1/20209/26/2019
B37/1/2020 
C37/1/20205/29/2020
A47/1/20209/24/2019
B47/1/20206/18/2020
C47/1/20206/18/2020
A18/1/2020 
B18/1/2020 
C18/1/2020 
A28/1/2020 
B28/1/2020 
C28/1/2020 
A38/1/2020 
B38/1/2020 
C38/1/2020 
A48/1/2020 
B48/1/2020 
C48/1/2020 
  • Anonymous's avatar
    Anonymous
    5 years ago

    yaabandoh  Yu can create a measure like below-

    Products Relaunched = CALCULATE(COUNT('Table'[Product Code]),FILTER('Table','Table'[Date Relaunched]<>BLANK()))
     
    And your visualization would look like this- 
     
     
     

     

    Appreciate your kudos!! Please accept this post as solution if it helps.

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    yaabandoh  Yu can create a measure like below-

    Products Relaunched = CALCULATE(COUNT('Table'[Product Code]),FILTER('Table','Table'[Date Relaunched]<>BLANK()))
     
    And your visualization would look like this- 
     
     
     

     

    Appreciate your kudos!! Please accept this post as solution if it helps.

    • yaabandoh's avatar
      yaabandoh
      Frequent Visitor
      Anonymous Thank you. Please I will like the graph to show bars for all the months, with 0 values for where there is no relaunch.
      • Anonymous's avatar
        Anonymous
        Not applicable

        yaabandoh Create a date table and make a relationship with the data table.

        And use the month column from the date table.

         

  • Anonymous's avatar
    Anonymous
    Not applicable

    yaabandoh  

    Hey mate ,

    You can use this .

     

    Test = COUNTROWS(VALUES(Sheet1[Date]))
     
    Cheers