cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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

 

rajendran
Community Champion
Community Champion

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors