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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ok_kpop
Frequent Visitor

Create a Table for Duplicate Values within Same Day

I want to create a table where it'll show if there are duplicate time intervals within one day. For example, in the current spreadsheet I have loaded into the file attached below, there's (2) 800am intervals in Day 1. 

 

Screenshot 2023-08-17 123939.png

I want the table to list the day and all the time intervals that are repeated (if there are any). If there's no duplicate time intervals within a day, I want it to just say "No duplicates" :

 

Screenshot 2023-08-17 123234.png

 

Screenshot 2023-08-17 124452.png

 

DUMMY FILE 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ok_kpop , Create a measure like

 

Measure =

var _1 = countrows(Table)

return 

if(_1 >1, "duplicates", "No duplicates")

 

Plot this with day in a visual

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ok_kpop , Create a measure like

 

Measure =

var _1 = countrows(Table)

return 

if(_1 >1, "duplicates", "No duplicates")

 

Plot this with day in a visual

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks for your help! I do want to add onto this formula and I made another post about it. If you could help me with this as well, I'd really appreciate it! https://community.fabric.microsoft.com/t5/Desktop/Formula-to-Detect-Missing-Time-Intervals-amp-amp-D...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors