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
unnipbi123
Helper II
Helper II

circular dependancy error on the columns which are not related

Hi,

 

I have a calculated table in my desktop and i am trying to create two calculated columns in that.

 

column 1: to find the total unpaid seats for the current month

currentmonth NFR = CALCULATE(SUM(NFR_Aging[NFR seats]),YEAR(NFR_Aging[Date])=YEAR(TODAY()) && MONTH(NFR_Aging[Date])=MONTH(TODAY()))

column 2: to find the total paid seats for the current month

currentmonth SEATS = CALCULATE(SUM(NFR_Aging[paid seats]),YEAR(NFR_Aging[Date])=YEAR(TODAY()) && MONTH(NFR_Aging[Date])=MONTH(TODAY()))

 

when i try to create  a second calculated column, i am getting the error as below

unnipbi123_0-1644994289038.png

 

for both calculations, i am calculating sum of two different columns. not sure why there is a dependancy error. Please help

 

Below is the table structure

Date

dist-id

res-id

channel

dist-name

res-name

region

NFR seats

paid seats

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@unnipbi123 , Both seem fine, But you should create them as measures

 

currentmonth NFR = CALCULATE(SUM(NFR_Aging[NFR seats]),YEAR(NFR_Aging[Date])=YEAR(TODAY()) && MONTH(NFR_Aging[Date])=MONTH(TODAY()))

 

currentmonth SEATS = CALCULATE(SUM(NFR_Aging[paid seats]),YEAR(NFR_Aging[Date])=YEAR(TODAY()) && MONTH(NFR_Aging[Date])=MONTH(TODAY()))

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@unnipbi123 , Both seem fine, But you should create them as measures

 

currentmonth NFR = CALCULATE(SUM(NFR_Aging[NFR seats]),YEAR(NFR_Aging[Date])=YEAR(TODAY()) && MONTH(NFR_Aging[Date])=MONTH(TODAY()))

 

currentmonth SEATS = CALCULATE(SUM(NFR_Aging[paid seats]),YEAR(NFR_Aging[Date])=YEAR(TODAY()) && MONTH(NFR_Aging[Date])=MONTH(TODAY()))

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Thanks. it worked

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

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.