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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

String variance analysis between two datasets

Dear support community, 

I have two datasets with same number of columns: Current Day and Previous day. 

Previous Day dataset

NumberFull NameCan. Country of ResidenceAreaReq. Expected NationalityReq. SegmentReq. Estimated Start Date
100

Scarlett Reeves

FranceEAFFranceLabor01/05/2020
101

Haider Garcia

RussiaRCARussiaOperator01/05/2020
102

Lois Zamora

UKEAFUKOperator01/05/2020
103

Joyce Massey

USANAMUSAMechanic01/05/2020
104

Yunus Woodcock

BrasilLAMBrasilEngineer01/05/2020

 

Current Day dataset

NumberFull NameCan. Country of ResidenceAreaReq. Expected NationalityReq. SegmentReq. Estimated Start Date
100

Scarlett Reeves

FranceRCARussiaLabor01/05/2020
101

Haider Garcia

RussiaRCARussiaOperator01/05/2020
102

Lois Zamora

UKEAFUKOperator01/05/2020
103

Joyce Massey

USANAMUSAMechanic01/05/2020
104

Yunus Woodcock

BrasilLAMBrasilEngineer02/05/2020

 

I would like to project in a vizualization the rows that have been modified and color code value(s) that have changed.

e.g 

NumberFull NameCan. Country of ResidenceAreaReq. Expected NationalityReq. SegmentReq. Estimated Start Date
100

Scarlett Reeves

FranceRCARussiaLabor01/05/2020
104

Yunus Woodcock

BrasilLAMBrasilEngineer02/05/2020

or is there any more appropriate way to project the variances between the datasets?

 

I have tried to create New compare table with EXCEPT function, but not sure on the steps to apply to highlight the data differences.

 

thank you in advance

 

 

 

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

1.You can create row control measure like this and set its value = 1 in filters:

         RowControl = IF(COUNTROWS(EXCEPT('Current Day','Prevoius Day'))>0,1,-1)

filter1.png

2.You can create the following measures like this:

Area_Font = IF(not SELECTEDVALUE('Current Day'[Area]) in DISTINCT('Prevoius Day'[Area]),"#FF0000",BLANK())

 

Nationality_Font = IF(not SELECTEDVALUE('Current Day'[Req.Expected Nationality]) in DISTINCT('Prevoius Day'[Req.Expected Nationality]),"#FF0000",BLANK())

 

Start Date_Font = IF(not SELECTEDVALUE('Current Day'[Req.Estimated Start Date]) in DISTINCT('Prevoius Day'[Req.Estimated Start Date]),"#FF0000",BLANK())

 

3.In Values, choose the column you compared one by one and find Conditional formatting -> Font color

font color1.png

 

4.In Font color, choose Format by Field value and under Based on filed, selected previous measure:

font color2.png

 

5.You will get the result that you hoped:

result.png

 

Here is the demo, please try it:

PBIX 

 

Best Regards,

Yingjie Li

 

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

1 REPLY 1
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

1.You can create row control measure like this and set its value = 1 in filters:

         RowControl = IF(COUNTROWS(EXCEPT('Current Day','Prevoius Day'))>0,1,-1)

filter1.png

2.You can create the following measures like this:

Area_Font = IF(not SELECTEDVALUE('Current Day'[Area]) in DISTINCT('Prevoius Day'[Area]),"#FF0000",BLANK())

 

Nationality_Font = IF(not SELECTEDVALUE('Current Day'[Req.Expected Nationality]) in DISTINCT('Prevoius Day'[Req.Expected Nationality]),"#FF0000",BLANK())

 

Start Date_Font = IF(not SELECTEDVALUE('Current Day'[Req.Estimated Start Date]) in DISTINCT('Prevoius Day'[Req.Estimated Start Date]),"#FF0000",BLANK())

 

3.In Values, choose the column you compared one by one and find Conditional formatting -> Font color

font color1.png

 

4.In Font color, choose Format by Field value and under Based on filed, selected previous measure:

font color2.png

 

5.You will get the result that you hoped:

result.png

 

Here is the demo, please try it:

PBIX 

 

Best Regards,

Yingjie Li

 

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

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors