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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DRJ1994
Helper I
Helper I

Division issue and circular dependancy error

Hi all,

 

I have run into a series of errors on a dashboard I am trying to produce.

 

I am trying to work out the occupancy rate of a small block of flats. I have the below visual:

 

DRJ1994_0-1702560018329.png

The sum of daysinservice is how many days combined customers have spent in the accomodation in dates ranging from 2018 to 2023. The possible bed days is how many possible days the rooms could be occupied in the same date range. The date range is 25/01/2018 to today, there are 2149 days in that range, there are 6 rooms in the accomodation so to achieve this number I have done Daysinrange *6

 

The first issue I have, is when trying to divide daysinservice (DIS) by Possible Bed Days (PBD) I initially recieved the correct answer of 66%. However, when I moved the date slider around, to change the period that I was looking at, the values for DIS became 5000 for example, and the values for PBD became 9000, however the division was returning an answer of 128% - So I am not sure why it is going wrong.

 

The second issue, I have since removed the measure for the division, and when I am trying to add a new measure or column, I am getting the below error:

 

DRJ1994_1-1702560299256.png

 

I have also attached an image of the work in progress dashboard as this may help with understanding what I am talking about.

DRJ1994_2-1702560522355.png

 

Any tips or advice would be greatly appreciated.

Many thanks,

DRJ

 

 

5 REPLIES 5
amitchandak
Super User
Super User

@DRJ1994, Seem like you are using one measure and one column.

 

Create a new measure using both measures

 

Aggregate the column in numerator

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, sorry could you explain a bit more what you mean please? 

@DRJ1994 , To me seems like Days in service is column

 

So new measures will be

 

Occupany Rate = Divide(Sum(Customer Tracker [Daystaservice]), [Possible Bed Days],0)

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, I have tried the query as follows: 

Occupancy Rate = DIVIDE(SUM('Customer Tracker'[DaysInService],([Possible Bed Days]),0))
I am now getting the error "Too Many arguments were passed to the sum function, the maximum argument is 1"
Anonymous
Not applicable

Hi @DRJ1994 ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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