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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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