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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
luisman67
Regular Visitor

Need help on total of a measure

Hello, we are trying to calculate assitance to fitness activities, i have managed to calculate assitance rate for each activity interval, but i cannot get the average total. We have 3 connected tables:

 

Activities: where i can get capacity of each

Intervals: each activity, i.e. Ioga, develops in different intervals i.e. mondays at 6pm, tuesdays at 10 am, and so on..

Reservations: made by users to each interval

 

c1 ticket.PNG

 

When i use a table to summarize data appears as below. Capacity is only summarize if i use max.Capacity, but OccupacyRate is not well summarized

 

Captura3.PNG

 

Thank you very much for your help,

 

Regards,

 

1 ACCEPTED SOLUTION
talespin
Solution Sage
Solution Sage

hi @luisman67 

 

I am assumin that your Datamodel has active relationships between these three tables.

 

For Capacity use this measure.

Capacity = SUMX( SUMMARIZE(Reservations, Reservations[IntervalID], Activities[Capacity]), [Capacity])
 
OccupationRate = DIVIDE( COUNT(Reservations[PersonID]), [Capacity])
 
talespin_0-1710478378600.png

 

View solution in original post

3 REPLIES 3
luisman67
Regular Visitor

Thanks a lot Tailspin!!, worked perfect!

 

Best regards!!

hi @luisman67 

 

You're welcome.

talespin
Solution Sage
Solution Sage

hi @luisman67 

 

I am assumin that your Datamodel has active relationships between these three tables.

 

For Capacity use this measure.

Capacity = SUMX( SUMMARIZE(Reservations, Reservations[IntervalID], Activities[Capacity]), [Capacity])
 
OccupationRate = DIVIDE( COUNT(Reservations[PersonID]), [Capacity])
 
talespin_0-1710478378600.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors