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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
maxgeb
New Member

Count Values from other Table only once

Hello - i ran into a Problem in Power BI after trying a lot.

I have a big Table containing Appointments.

The Start- and End- Times are indicated by numbers from 0 to 95 (for each 15-Minute Block from 00:00 to 23:45).

 

Columns:

Date

StartTime

EndTime

ExamRoom

Doctor

and others...

 

I want to calculate the Duration of the daily Worktime for each Doctor without counting his booking in two ExamRooms at the same timeslot twice.

 

Groupby / SUMX counts every booking in every room - thats where i got stuck.

Anybody has an Idea?

I already created a Table with the TimeIndexes from 0 to 95 but i can't figure out

  • how to count for each day
  • for each timeslot
  • if there is one or more appointments for the doctor in the appointments-table
  • and counting this as 1 or 0
1 REPLY 1
CahabaData
Memorable Member
Memorable Member

You will need to define which value (or calculation) in a record will flag the surviving record when there is more than 1 record per doctor booking per day.

 

This definition is needed up front to then best decide how to implement the best filter.

www.CahabaData.com

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors