Hi All,
I've 200+ rows of call history data and It will have multiple entries for each day for each users. I would like to add the serial number accordingly to start date to use it on a slicer. Below is the screenshot fo the data,
If start date is 2023-01-04, then serial number would be 1,
if start date is 2023-01-05, then serial number would be 2....
Any help on this would be appreciated.
Thank you.
Solved! Go to Solution.
hi @Santhosh_V
try to add a column like:
Serial Number =
INT(
DATE(
LEFT([StartDateTime], 4),
MID([StartDateTime], 6, 2),
MID([StartDateTime], 9, 2)
) -
DATE(2023, 1 ,4) +1
)
Hi , @Santhosh_V
According to your description, you want to add a rank column from the "Date/Time" column (just compare the date not the time).
Here are the steps you can refer to :
(1)This is my test data:
(2)We can click "New Column" and enter this:
Column = RANKX('Table',DATEVALUE( FORMAT('Table'[Date],"yyyy-mm-dd")),,ASC,Dense)
(3)Then we can meet your need:
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
hi @Santhosh_V
try to add a column like:
Serial Number =
INT(
DATE(
LEFT([StartDateTime], 4),
MID([StartDateTime], 6, 2),
MID([StartDateTime], 9, 2)
) -
DATE(2023, 1 ,4) +1
)
Hi @FreemanZ,
Thanks for your response.
May i know whether will this work if date value has changed?
Because the start date will get varied on monthly basis..
Thank you.
User | Count |
---|---|
129 | |
61 | |
55 | |
54 | |
43 |
User | Count |
---|---|
129 | |
61 | |
57 | |
56 | |
50 |