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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
pgarg
Frequent Visitor

Compare text columns in two different tables over a time period and identify the differnces

I have a fixed column named "Plan"and I want to compare its Restriction over 2 months and flag the rows which changed.

To make the question more clear,  below are the details. Can someone please help ?

 

Plan nameRestriction for May'18Restriction for June'18Expected result
APAPANo Change
BQASTChange 
CSTPAChange
DPAST

Change

1 ACCEPTED SOLUTION
chethan
Resolver III
Resolver III

@pgarg

 

Use below DAX, before that Please create the Relation between both the Tables the Create the Calculated Column

 

 

 

Expected Results =
IF (
    'Sales Data'[Customer Name Index] = RELATED ( 'Customer Data'[Customer Index] ),
    "No Change",
    "Change"
)

 

 

Regards,

Chetan K

 

View solution in original post

2 REPLIES 2
chethan
Resolver III
Resolver III

@pgarg

 

Use below DAX, before that Please create the Relation between both the Tables the Create the Calculated Column

 

 

 

Expected Results =
IF (
    'Sales Data'[Customer Name Index] = RELATED ( 'Customer Data'[Customer Index] ),
    "No Change",
    "Change"
)

 

 

Regards,

Chetan K

 

Anonymous
Not applicable

For this sample data, you can create a calculated column with the below formula.

 

COmparision=IF(Table1[Restriction for May'18]=Table1[Restriction for June'18], "No Change", "Change")

 

Thanks

Raj

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors