Forum Discussion

ItSupportElm's avatar
ItSupportElm
Icon for Helper III rankHelper III
6 years ago

Gather same Date instead to have each row

Hello, 

 

I have one column "DateCreation" and one column "Id" who correspond to the order.

 

But in my column there sometime 2,3 or 4 times de same date , i want to gather them. 

 I want to have for exemple "17/02/2020" One line for said i have 4 "Id" (orders)

 

Thanks for the futur answer, great day

19 Replies

  • az38's avatar
    az38
    Icon for Community Champion rankCommunity Champion

    Hi ItSupportElm 

    Click on Id column in the Visializations pane and set "Count" summarizaion as active

  • Hi ItSupportElm ,

     

    Check for 2 things:

    1. Check that the format of your date column is DATE type not DATETIME type

    2. When you move ID column to the visual along with Date column, set Summarisation on ID column to COUNT

     

    Thanks,

    Pragati

    • ItSupportElm's avatar
      ItSupportElm
      Icon for Helper III rankHelper III

      Hi Pragati11, and az38 

       

      My date column is already in DATE type, then when i followed you second advice it didnt work.

       

      I steal have 4 row with the same date ... 

       

      Actually i want to count the number of date with the date itself... 

      • Pragati11's avatar
        Pragati11
        Icon for Super User rankSuper User

        Hi ItSupportElm ,

         

        Can you please put a screenshot against what kind of summarization you did on ID column when moved on visual with DATE column?

         

        Thanks,

        Pragati

  • v-alq-msft's avatar
    v-alq-msft
    Icon for Community Support rankCommunity Support

    Hi, ItSupportElm 

     

    Based on your description, I created data to reproduce your scenario.

     

    You may create a table visual to display the reuslt and drag two columns from 'Table'. Please make sure the aggregation for id is 'Count'.

    As a workaround, you may create a measure as follows.

     

    CountForDate = 
    CALCULATE(
        COUNTROWS(
            FILTER(
                ALLSELECTED('Table'),
                'Table'[DateCreation]=MAX('Table'[DateCreation])
            )
        )
    )

     

     

    Result:

     

    Best Regards

    Allan

     

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

    • ItSupportElm's avatar
      ItSupportElm
      Icon for Helper III rankHelper III

      Hello thanks for the answer guys.

       

      v-alq-msft  i tried your solution but it didnt work i dont know why : 

       

       Do you have any idea why ? 

      • v-alq-msft's avatar
        v-alq-msft
        Icon for Community Support rankCommunity Support

        Hi, ItSupportElm 

         

        'CountForDate' is a measure not a calculated column. If possible, please show me your data model. Do mask sensitive data before uploading.

         

        Best Regards

        Allan