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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sravan872
Frequent Visitor

Power BI Desktop Conditional Format 2 columns with 2 different conditions giving circular dependency

I have a table with YTD spend % based on Approved budget & YTD spend % based on original Plan. I want to conditional format both columns based on another column which has some numbers which is a reference column.

Condition 1 - IF YTD spend % based on Approved budget < Reference Column, 1, 0

Condition 2 - IF YTD spend % based on original Plan < Reference Column, 1,0

 

I wrote DAX as follows:

 

1. 

YTD Spend % Flag Column Approved Budget = IF('ActionItemDataset bridgeCapitalPlanProject'[Month % for 12(Approved)] < [Ytd Approved Budget],1,0) - This is working
2. 
YTD Spend % Flag Column Original Plan = IF('ActionItemDataset bridgeCapitalPlanProject'[Month % for 12(Original)] < [Ytd Original Plan],1,0) - This is giving me circular dependency error 
 
How to avoid this circular dependency error. Please help.
 
1 ACCEPTED SOLUTION

It worked, Thank you very much.

View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@sravan872 ,

If possible, use measures instead of calculated columns. 

 

Measure for YTD Spend % Flag Approved Budget:
YTD Spend % Flag Approved Budget Measure =
IF(
MAX('ActionItemDataset bridgeCapitalPlanProject'[Month % for 12(Approved)]) < [Ytd Approved Budget],
1,
0
)

 


Measure for YTD Spend % Flag Original Plan:

YTD Spend % Flag Original Plan Measure =
IF(
MAX('ActionItemDataset bridgeCapitalPlanProject'[Month % for 12(Original)]) < [Ytd Original Plan],
1,
0
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






It worked, Thank you very much.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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