Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Manasi25
Helper II
Helper II

Add column by specific text by dates

Hello Team

I want to add a new column based on specific text from the existing column by dates.

Filtered data should be sorted by the corresponding dates it reported, not by the full Date column.

First:- I am sorting the below data manually by adding a new col "Action Taken by" based on Worknote which contains "took" then "ECC took care" & if contains "escalated" then "Taken care by CX ".Please advise how can I add this in Power BI.
Second: - I am also sorting the data of duplicate entries of Worknote col by each the dates. How can I sort this by current or each dates.


NumberIncident StartShort descriptionWork notesDescriptionAction taken by
IN250163415952025-01-31 23:57:29 zIBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P012025-02-01 02:42:22 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

2025-02-01 02:42:21 CST - FIS xMatters Incident (Work notes)
Poonam Gandhale : escalated

Entity ID: IBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P01 - There is an issue with this job 084609/TSSOPER/#SFTPAM on Server NEWSYS01 Client NEWSYS01 TSS
Entity Display Name: IBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P01
Hostname: NEWSYS01
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: IBM JOB
Alert Type: IBM JOB
Rule: #SFTPAM/084609.activeJobStatus
Netprobe: 10.154.15.120
Component: NEWSYS01
Value: MSGW
State Message: There is an issue with this job 084609/TSSOPER/#SFTPAM on Server NEWSYS01 Client NEWSYS01 TSS
Taken care by cx
IN250163415942025-01-31 23:57:29 zIBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P012025-02-01 02:42:28 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

2025-02-01 02:42:27 CST - FIS xMatters Incident (Work notes)
Poonam Gandhale : escalated

Entity ID: IBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P01 - There is an issue with this job 069871/TSSOPER/#SFTPPM on Server NEWSYS01 Client NEWSYS01 TSS
Entity Display Name: IBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P01
Hostname: NEWSYS01
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: IBM JOB
Alert Type: IBM JOB
Rule: #SFTPPM/069871.activeJobStatus
Netprobe: 10.154.15.120
Component: NEWSYS01
Value: MSGW
State Message: There is an issue with this job 069871/TSSOPER/#SFTPPM on Server NEWSYS01 Client NEWSYS01 TSS
Taken care by cx
IN250163415962025-01-31 23:57:29 zIBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P012025-02-01 02:42:35 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

2025-02-01 02:42:33 CST - FIS xMatters Incident (Work notes)
Poonam Gandhale : escalated

Entity ID: IBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P01 - There is an issue with this job 084166/TSSOPER/#SFTPGMF on Server NEWSYS01 Client NEWSYS01 TSS
Entity Display Name: IBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P01
Hostname: NEWSYS01
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: IBM JOB
Alert Type: IBM JOB
Rule: #SFTPGMF/084166.activeJobStatus
Netprobe: 10.154.15.120
Component: NEWSYS01
Value: MSGW
State Message: There is an issue with this job 084166/TSSOPER/#SFTPGMF on Server NEWSYS01 Client NEWSYS01 TSS
Taken care by cx
IN250163415922025-01-31 23:57:18 zIBM JOB - NEWSYS01 NOM - NA_CHC_PTD_GMI_P012025-02-01 02:43:04 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

2025-02-01 02:43:03 CST - FIS xMatters Incident (Work notes)
Poonam Gandhale : escalated

Entity ID: IBM JOB - NEWSYS01 NOM - NA_CHC_PTD_GMI_P01 - There is an issue with this job 066773/NOMOPER/#SFTPPMU on Server NEWSYS01 Client NEWSYS01 NOM
Entity Display Name: IBM JOB - NEWSYS01 NOM - NA_CHC_PTD_GMI_P01
Hostname: NEWSYS01
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: IBM JOB
Alert Type: IBM JOB
Rule: #SFTPPMU/066773.activeJobStatus
Netprobe: 10.154.15.120
Component: NEWSYS01
Value: MSGW
State Message: There is an issue with this job 066773/NOMOPER/#SFTPPMU on Server NEWSYS01 Client NEWSYS01 NOM
Taken care by cx
IN250163414192025-01-31 23:31:14 zIBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P012025-02-01 01:24:26 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

Entity ID: IBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P01 - There is an issue with this job 069536/TSSOPER/NRMAINC on Server NEWSYS01 Client NEWSYS01 TSS
Entity Display Name: IBM JOB - NEWSYS01 TSS - NA_CHC_PTD_GMI_P01
Hostname: NEWSYS01
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: IBM JOB
Alert Type: IBM JOB
Rule: NRMAINC/069536.activeJobStatus
Netprobe: 10.154.15.120
Component: NEWSYS01
Value: MSGW
State Message: There is an issue with this job 069536/TSSOPER/NRMAINC on Server NEWSYS01 Client NEWSYS01 TSS
ECC took care
IN250163327622025-01-30 23:11:19 zGMI_JOBS_ACTIVE - GMI - PD_UTILITIES_BARC_P012025-01-30 23:17:00 CST - FIS xMatters Incident (Work notes)
Archana Acharya : TOOK R

2025-01-30 23:16:58 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

Entity ID: GMI_JOBS_ACTIVE - GMI - PD_UTILITIES_BARC_P01 - There is an issue with this job BCIOPER/SDMAINC/978533
Entity Display Name: GMI_JOBS_ACTIVE - GMI - PD_UTILITIES_BARC_P01
Hostname: GMI
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: GMI_JOBS_ACTIVE
Alert Type: GMI_JOBS_ACTIVE
Rule: SDMAINC/978533.activeJobStatus
Netprobe: 10.154.22.10
Component: BARCLAYS
Value: MSGW
State Message: There is an issue with this job BCIOPER/SDMAINC/978533
ECC took care
IN250163327562025-01-30 23:11:02 zIBM JOB - FCSPRD FCS - NA_CHC_PTD_GMI_P012025-01-30 23:23:21 CST - FIS xMatters Incident (Work notes)
Archana Acharya : Taken care of

2025-01-30 23:23:20 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

Entity ID: IBM JOB - FCSPRD FCS - NA_CHC_PTD_GMI_P01 - There is an issue with this job 795757/FCSOPER/SHAREPOINT on Server FCSDR Client FCSPRD FCS
Entity Display Name: IBM JOB - FCSPRD FCS - NA_CHC_PTD_GMI_P01
Hostname: FCSPRD
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: IBM JOB
Alert Type: IBM JOB
Rule: SHAREPOINT/795757.activeJobStatus
Netprobe: 10.154.15.120
Component: FCSPRD
Value: MSGW
State Message: There is an issue with this job 795757/FCSOPER/SHAREPOINT on Server FCSDR Client FCSPRD FCS
ECC took care
IN250163327552025-01-30 23:11:02 zIBM JOB - FCSPRD FCS - NA_CHC_PTD_GMI_P012025-01-30 23:23:13 CST - FIS xMatters Incident (Work notes)
Archana Acharya : Taken care of

2025-01-30 23:23:13 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

Entity ID: IBM JOB - FCSPRD FCS - NA_CHC_PTD_GMI_P01 - There is an issue with this job 795764/FCSOPER/P9CATCHALL on Server FCSDR Client FCSPRD FCS
Entity Display Name: IBM JOB - FCSPRD FCS - NA_CHC_PTD_GMI_P01
Hostname: FCSPRD
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: IBM JOB
Alert Type: IBM JOB
Rule: P9CATCHALL/795764.activeJobStatus
Netprobe: 10.154.15.120
Component: FCSPRD
Value: MSGW
State Message: There is an issue with this job 795764/FCSOPER/P9CATCHALL on Server FCSDR Client FCSPRD FCS
ECC took care
IN250163307812025-01-30 17:00:07 zIBM JOB - FCSPRD FCS - NA_CHC_PTD_GMI_P012025-01-30 17:52:03 CST - FIS xMatters Incident (Work notes)
Jeetendrasingh Sisodia : Taken care

2025-01-30 17:51:59 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

Entity ID: IBM JOB - FCSPRD FCS - NA_CHC_PTD_GMI_P01 - There is an issue with this job 793597/FCSOPER/G4MAINC on Server FCSDR Client FCSPRD FCS
Entity Display Name: IBM JOB - FCSPRD FCS - NA_CHC_PTD_GMI_P01
Hostname: FCSPRD
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: IBM JOB
Alert Type: IBM JOB
Rule: G4MAINC/793597.activeJobStatus
Netprobe: 10.154.15.120
Component: FCSPRD
Value: MSGW
State Message: There is an issue with this job 793597/FCSOPER/G4MAINC on Server FCSDR Client FCSPRD FCS
ECC took care
IN250163304572025-01-30 15:43:47 zIBM JOB - NEWSYS01 DOR - NA_CHC_PTD_GMI_P012025-01-30 16:51:05 CST - FIS xMatters Incident (Work notes)
Jeetendrasingh Sisodia : taken care

2025-01-30 16:51:04 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

Entity ID: IBM JOB - NEWSYS01 DOR - NA_CHC_PTD_GMI_P01 - There is an issue with this job 009812/DOROPER/GRMAINC on Server NEWSYS01 Client NEWSYS01 DOR
Entity Display Name: IBM JOB - NEWSYS01 DOR - NA_CHC_PTD_GMI_P01
Hostname: NEWSYS01
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: IBM JOB
Alert Type: IBM JOB
Rule: GRMAINC/009812.activeJobStatus
Netprobe: 10.154.15.120
Component: NEWSYS01
Value: MSGW
State Message: There is an issue with this job 009812/DOROPER/GRMAINC on Server NEWSYS01 Client NEWSYS01 DOR
ECC took care
IN250163298192025-01-30 14:01:54 zIBM JOB - NEWSYS01 NOM - NA_CHC_PTD_GMI_P012025-01-30 15:02:48 CST - FIS xMatters Incident (Work notes)
Jeetendrasingh Sisodia : taken care

2025-01-30 15:02:46 CST - System (Work notes)
Alert thas been Terminated in xMatters by the AIOPS SNOW to xMatters Flow

Entity ID: IBM JOB - NEWSYS01 NOM - NA_CHC_PTD_GMI_P01 - There is an issue with this job 989318/NOMOPER/Q7_SGX on Server NEWSYS01 Client NEWSYS01 NOM
Entity Display Name: IBM JOB - NEWSYS01 NOM - NA_CHC_PTD_GMI_P01
Hostname: NEWSYS01
Message Type: CRITICAL
Monitoring Tool: Geneos
FIS Notification Type: IBM JOB
Alert Type: IBM JOB
Rule: Q7_SGX/989318.activeJobStatus
Netprobe: 10.154.15.120
Component: NEWSYS01
Value: MSGW
State Message: There is an issue with this job 989318/NOMOPER/Q7_SGX on Server NEWSYS01 Client NEWSYS01 NOM
ECC took care
2 ACCEPTED SOLUTIONS

First, you need to extract the date part from the "Incident Start" column. You can create a new column in Power BI using DAX to extract the date:

Incident Date = DATE(YEAR([Incident Start]), MONTH([Incident Start]), DAY([Incident Start]))

 

After creating the "Incident Date" column, you can sort your data by this column and then by the "Incident Start" time. Here’s how you can do it:

In the Power Query Editor, select the "Incident Date" column.
Click on the "Sort Ascending" or "Sort Descending" button to sort the data by the date.
Next, select the "Incident Start" column.
Click on the "Sort Ascending" or "Sort Descending" button to sort the data by the time within each day.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

Anonymous
Not applicable

Hi @Manasi25 ,

I couldn't agree more with bhanu_gautam, but I have some more personal thoughts.

Firstly the Data type needs to be changed to Date/time.

vyilongmsft_0-1739410599303.png

You can sort the Incident Start column in Table view.

vyilongmsft_1-1739410870503.png

vyilongmsft_2-1739411040990.png

 

 

Best Regards

Yilong Zhou

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

View solution in original post

5 REPLIES 5
bhanu_gautam
Super User
Super User

@Manasi25 

Add a New Column Based on Specific Text in "Work notes":

 

Action Taken by =
IF(
CONTAINSSTRING([Work notes], "took"),
"ECC took care",
IF(
CONTAINSSTRING([Work notes], "escalated"),
"Taken care by CX",
BLANK()
)

 

 

To sort the data by the dates mentioned in the "Work notes" column, you need to extract the date from the text and then sort the data based on this extracted date.


You can create a new column to extract the date from the "Work notes" column using DAX. Assuming the date format in the "Work notes" is consistent, you can use the following DAX formula:

Extracted Date =
DATE(
MID([Work notes], 1, 4),
MID([Work notes], 6, 2),
MID([Work notes], 9, 2)
)

 


After creating the "Extracted Date" column, you can sort your data by this column.

 

To handle duplicate entries, you can use Power BI's data transformation capabilities in Power Query Editor. You can group by the "Incident Start" or any other relevant column and then sort within each group by the "Extracted Date".

Go to Power Query Editor.
Select the column you want to group by (e.g., "Incident Start").
Use the "Group By" feature to group the data.
Within each group, sort the data by the "Extracted Date" column.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thank you for quick reply.

I got first solutions.Thanks !

But for second query, i want to sort the data by the dates (each day) by "Incident Start" only 🙂

Anonymous
Not applicable

Hi @Manasi25 ,

I couldn't agree more with bhanu_gautam, but I have some more personal thoughts.

Firstly the Data type needs to be changed to Date/time.

vyilongmsft_0-1739410599303.png

You can sort the Incident Start column in Table view.

vyilongmsft_1-1739410870503.png

vyilongmsft_2-1739411040990.png

 

 

Best Regards

Yilong Zhou

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

First, you need to extract the date part from the "Incident Start" column. You can create a new column in Power BI using DAX to extract the date:

Incident Date = DATE(YEAR([Incident Start]), MONTH([Incident Start]), DAY([Incident Start]))

 

After creating the "Incident Date" column, you can sort your data by this column and then by the "Incident Start" time. Here’s how you can do it:

In the Power Query Editor, select the "Incident Date" column.
Click on the "Sort Ascending" or "Sort Descending" button to sort the data by the date.
Next, select the "Incident Start" column.
Click on the "Sort Ascending" or "Sort Descending" button to sort the data by the time within each day.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hello All

Sorry to reply late here.

The query is - I have 5 alerts in a day, which should be consider as 1, this alert is reporting daily and i want to count only 1 instead of 5 per day.


As per below on date 02/01/2025 I want alert of"A" considered as only 1 and remove duplicates from same col. Same on date 02/02/2025 alert of "A" should be considered count only 1 and remove duplicates. How can this be done ?

NumberAlertDate
1A02/01/2025
2A02/01/2025
3A02/01/2025
4A02/01/2025
5B02/01/2025
6B02/01/2025
8B02/01/2025
9A02/02/2025
10A02/02/2025

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.