Forum Discussion
How to track changes (text fields) on rows compared to next month?
- 4 years ago
Hi Anonymous ,
According to your description, here’s my solution.
1.Create a measure to check the status.
Check = IF ( CALCULATE ( COUNTROWS ( 'october' ) = 0, FILTER ( ALL ( 'october' ), 'october'[article] = MAX ( 'november'[article] )) ), "New", IF ( CALCULATE ( COUNTROWS ( 'november' ) = 0, FILTER ( ALL ( 'november' ), 'november'[article] = MAX ( 'october'[article] ) && 'november'[AO] = MAX ( 'october'[AO] ) && 'november'[BO] = MAX ( 'october'[BO] ) && 'november'[DESCRIPTION] = MAX ( 'november'[DESCRIPTION] ) && 'november'[RELATION] = MAX ( 'october'[RELATION] ) ) ), "Change", BLANK () ) )2.Create color measures for conditional formatting.
ColorAO = IF('november'[Check]="Change",IF(MAX('november'[AO])<>MAX('october'[AO]),"Red")) ColorBO = IF('november'[Check]="Change",IF(MAX('november'[BO])<>MAX('october'[BO]),"Red")) ColorDES = IF('november'[Check]="Change",IF(MAX('november'[DESCRIPTION])<>MAX('october'[DESCRIPTION]),"Red")) ColorREL = IF('november'[Check]="Change",IF(MAX('november'[RELATION])<>MAX('october'[RELATION]),"Red"))3.Select Conditional formatting and turn on Font color, for each column, select the corresponding color measure.
For column AO:
4.Get the expected result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyjIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
According to your description, here’s my solution.
1.Create a measure to check the status.
Check =
IF (
CALCULATE (
COUNTROWS ( 'october' ) = 0,
FILTER ( ALL ( 'october' ), 'october'[article] = MAX ( 'november'[article] ))
),
"New",
IF (
CALCULATE (
COUNTROWS ( 'november' ) = 0,
FILTER (
ALL ( 'november' ),
'november'[article] = MAX ( 'october'[article] )
&& 'november'[AO] = MAX ( 'october'[AO] )
&& 'november'[BO] = MAX ( 'october'[BO] )
&& 'november'[DESCRIPTION] = MAX ( 'november'[DESCRIPTION] )
&& 'november'[RELATION] = MAX ( 'october'[RELATION] )
)
),
"Change",
BLANK ()
)
)
2.Create color measures for conditional formatting.
ColorAO = IF('november'[Check]="Change",IF(MAX('november'[AO])<>MAX('october'[AO]),"Red"))
ColorBO = IF('november'[Check]="Change",IF(MAX('november'[BO])<>MAX('october'[BO]),"Red"))
ColorDES = IF('november'[Check]="Change",IF(MAX('november'[DESCRIPTION])<>MAX('october'[DESCRIPTION]),"Red"))
ColorREL = IF('november'[Check]="Change",IF(MAX('november'[RELATION])<>MAX('october'[RELATION]),"Red"))
3.Select Conditional formatting and turn on Font color, for each column, select the corresponding color measure.
For column AO:
4.Get the expected result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous4 years agoNot applicable
Sorry that I couldnt answer earlier. As I got covid, I'm still strugling a bit with day to day work. I'm still trying to understand what you wrote for these measures. Seems that I'm not there yet.
- v-yanjiang-msft4 years ago
Community Support
Hi Anonymous ,
First through the measure check, you can get all the article which is different from before or completely new.
For the changed part, in order to highlight the different places, I use conditional formatting, by the color measure, the changed part will be higelighted.
You can download my sample, it can help you to understand.
Best Regards,
Community Support Team _ kalyj