Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 ?
Number Alert Date
1 A 02/01/2025
2 A 02/01/2025
3 A 02/01/2025
4 A 02/01/2025
5 B 02/01/2025
6 B 02/01/2025
7 B 02/01/2025
8 A 02/02/2025
9 A 02/02/2025
Solved! Go to Solution.
Hi @Manasi25 ,
Refer to the steps below. In PowerQuery, first sort by the number column, and then select the Alert column and Date column to remove duplicates.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi @Manasi25 ,
Refer to the steps below. In PowerQuery, first sort by the number column, and then select the Alert column and Date column to remove duplicates.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
@Manasi25 Try creating a new table as below:
@Manasi25 Create a new table that summarizes the data by "Alert" and "Date":
Proud to be a Super User! |
|
I created table with only on column. and its giving me below error.
Okay, thats fine, what if I want to remove all duplicates and keep row of the alert which alerted first by date and time.
Add a calculated column to rank the alerts by date and time:
AlertRank =
RANKX(
FILTER(
'YourTable',
'YourTable'[Date] = EARLIER('YourTable'[Date]) &&
'YourTable'[Alert] = EARLIER('YourTable'[Alert])
),
'YourTable'[Time], // Assuming you have a 'Time' column
,
Create a new table that keeps only the first occurrence of each alert per day:
FirstAlertTable =
FILTER(
'YourTable',
'YourTable'[AlertRank] = 1
)
This approach uses the RANKX function to rank the alerts by date and time, and then filters the table to keep only the first occurrence of each alert per day. If you do not have a time column, you can rank by the date alone.
Proud to be a Super User! |
|
It doesn't make any difference with my actual data. I want to keep row from "Alert" col by day.
Want to remove duplicates. Keep the only one alert which has 5 duplicates entry in a day. Same for another could happen, but want entry only 1 for each day.
Hi @Manasi25
You could select the 3 columns and click Home>Remove Rows > Remove duplicates. This will allow you to remove the duplicates and count as 1 for similar alerts.
Hope this helps. Do give a kudos if it works!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |