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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. 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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors