Forum Discussion
calculate value based on different row
Can you share a sample and conditions you need. It can be one column or mutiple column. Depend on what is the later usages.
Hi amitchandak ,
See the table below:
When stage is A and date is provided, then I want to highlight the dates in both P&F stage with different color.
As per my original query first I thought I will create calculated column for each date column and based on that I would do conditional formatting based on output and even based on the solution you provided I could get the intended result, but with that my database is increasing and I am not sure what is the right way to have measure or to have calculated columns.
Please suggest what is better? and also if you can help with single measure for all columns that would be fantastic.
| Project No. | Item | Stage | 1.Date | 2.Date | 3.Date | 4.Date | 5.Date | 6.Date | 7.Date | 8.Date | 9.Date | 10.Date | 11.Date |
| A123 | Jar | P | 01-01-2020 | 08-01-2020 | 15-01-2020 | 22-01-2020 | 29-01-2020 | 05-02-2020 | 12-02-2020 | 19-02-2020 | 26-02-2020 | 04-03-2020 | 11-03-2020 |
| A123 | Jar | F | 05-01-2020 | ||||||||||
| A123 | Jar | A | 10-01-2020 | 11-01-2020 | 12-01-2020 | 13-01-2020 | 14-01-2020 | 14-01-2020 | 15-01-2020 | ||||
| A123 | tel | P | 01-01-2020 | 08-01-2020 | 02-01-2020 | 09-01-2020 | 03-01-2020 | 10-01-2020 | 04-01-2020 | 11-01-2020 | 05-01-2020 | 12-01-2020 | 06-01-2020 |
| A123 | tel | F | 05-01-2020 | ||||||||||
| A123 | tel | A | |||||||||||
| B123 | jet | P | 05-01-2020 | 12-01-2020 | 19-01-2020 | 26-01-2020 | 02-02-2020 | 09-02-2020 | 16-02-2020 | 23-02-2020 | 01-03-2020 | 08-03-2020 | 15-03-2020 |
| B123 | jet | F | 05-01-2020 | 13-01-2020 | 15-01-2020 | 17-01-2020 | 20-01-2020 | 30-01-2020 | |||||
| B123 | jet | A | 10-01-2020 | 13-01-2020 | 14-01-2020 | 15-01-2020 | |||||||
| B123 | jar | P | 03-01-2020 | 10-01-2020 | 17-01-2020 | 24-01-2020 | 31-01-2020 | 07-02-2020 | 14-02-2020 | 21-02-2020 | 28-02-2020 | 06-03-2020 | 13-03-2020 |
| B123 | jar | F | 05-01-2020 | ||||||||||
| B123 | jar | A |
Thanks and Regards,