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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Dominok123
Frequent Visitor

New 'Yes/No' column depending on changes to a value associated with an ID

Hey guys,

I am struggling with trying and getting the third column 'Change' (in the table below) working in Power BI. 

 

Basically I need to work out if the value column has changed two or more times for each ID. So values that change once within the same ID would not count - only if the value changes 2 or more times per each ID.

 

In the table below you see that:

ID 1 value changed twice so that = 'Yes'

ID 2 did not change = 'No'

ID 3 value changed once so that = 'Yes'

 

Any help would be much appreciated.

 

Table1:

IDValueChange
11000Yes
11000 
11200 
11800 
2720No
2720 
3900No
3900 
31000 

 

1 ACCEPTED SOLUTION

@Dominok123 

 

You can use this calculated column

 

Column =
IF (
    CALCULATE ( DISTINCTCOUNT ( Table1[Value] ), ALLEXCEPT ( Table1, Table1[ID] ) ) > 2,
    "yes",
    "no"
)

DC.png

View solution in original post

3 REPLIES 3
Zubair_Muhammad
Community Champion
Community Champion

@Dominok123 

 

So you can count distinct values per each ID and if they are greater than 2...answer should be "yes"...

Isn't it?

Yeah, I just have no idea how to do it even though this should be really basic. Like I have no idea what the DAX formula for this would be.

@Dominok123 

 

You can use this calculated column

 

Column =
IF (
    CALCULATE ( DISTINCTCOUNT ( Table1[Value] ), ALLEXCEPT ( Table1, Table1[ID] ) ) > 2,
    "yes",
    "no"
)

DC.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.