Forum Discussion
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
Community Champion
Hi ItSupportElm
Click on Id column in the Visializations pane and set "Count" summarizaion as active
- Pragati11
Super User
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
Helper III
- Pragati11
Super 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
Community 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
Helper 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
Community 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