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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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