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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
admin11
Memorable Member
Memorable Member

How to create column expression to filter high risk account ?

Hi All

 

_HIGH RISK = IF( AR[Customer/Vendor Code] IN {
A10002,AR10012
}, "HI RISK", AR[AR_AMT_])
 

I get below error msg

A circular dependency was detected: AR[Column 2], AR[_Day 1 to 31 column], AR[Column 2].

 

1 ACCEPTED SOLUTION

Hi, @admin11  

 

The file is deleted, it is difficult for me to understand the situation.

According to the response above, You can create a column.

Like this:

_HIGH_RISK_NEW =
SUMX (
    FILTER ( AR, [a] = EARLIER ( AR[a] ) && [b] = EARLIER ( AR[b] ) ),
    IF ( AR[Customer/Vendor Code] IN { "A10002", "AR10012" }, 0, AR[AR_AMT_] )
)

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
themistoklis
Community Champion
Community Champion

@admin11 

 

In the if statement it seems you try to combine text ("HIGH RISK") with number which cannot be done.

 

Create a measure and add the following formula. Make sure you delete any other error fields (the ones with the exclamation mark symbol) in the table as i saw that these prevent the formula from displaying

 

_HIGH_RISK_NEW = 
SUMX (
    AR,    -- Table Name
    IF (
        AR[Customer/Vendor Code] IN {"A10002","AR10012"},
        0,
        AR[AR_AMT_]
    )
)

 

@themistoklis 

Many thank for your sharing.

Kindly help me change the expression from measure to column. 

As i am unable to place the measure at Slicer or filter panel.

 

Paul

Hi, @admin11  

 

The file is deleted, it is difficult for me to understand the situation.

According to the response above, You can create a column.

Like this:

_HIGH_RISK_NEW =
SUMX (
    FILTER ( AR, [a] = EARLIER ( AR[a] ) && [b] = EARLIER ( AR[b] ) ),
    IF ( AR[Customer/Vendor Code] IN { "A10002", "AR10012" }, 0, AR[AR_AMT_] )
)

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Users online (4,217)