Forum Discussion
Pls Help Dream Team
- 4 years ago
Hi, Smolik1980
This is a calculated column:
CalculatedColumn= if(tbl[Action Status]="Completed"&&tbl[Forecasted Date]=BLANK(),"not correct","correct")If you want to create a measure, you need to modify this code.
Like this:
Measure = IF ( MAX ( tbl[Action Status] ) = "Completed" && MAX ( tbl[Forecasted Date] ) = BLANK (), "not correct", "correct" )Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.Best Regards,
Community Support Team _ Janey
Smolik1980 you want calculated column/measure? want this to be done through PQ/DAX? what is the relationship?
Spare more details and provide sample data
| Action status | Forecasted date of execution | |
| Completed | 13.10.2021 | correct |
| Completed | 15.10.2021 | correct |
| Completed | not correct | |
| Completed | not correct | |
| Completed | 14.10.2021 | correct |
| Completed | 14.10.2021 | correct |
| Completed | not correct | |
| Completed | not correct | |
| Completed | 01.11.2021 | correct |
| Completed | 14.10.2021 | correct |
- smpa014 years ago
Community Champion
CalculatedColumn= if(tbl[Action Status]="Completed"&&tbl[Forecasted Date]=BLANK(),"not correct","correct")
- Smolik19804 years agoNew Member
thanks, but something is still wrong, the problem is with Status Data, I have an alert as below:
A single value for column 'Action status' in table 'Rejestr postępowań zakupowych' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
- v-janeyg-msft4 years ago
Community Support
Hi, Smolik1980
This is a calculated column:
CalculatedColumn= if(tbl[Action Status]="Completed"&&tbl[Forecasted Date]=BLANK(),"not correct","correct")If you want to create a measure, you need to modify this code.
Like this:
Measure = IF ( MAX ( tbl[Action Status] ) = "Completed" && MAX ( tbl[Forecasted Date] ) = BLANK (), "not correct", "correct" )Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.Best Regards,
Community Support Team _ Janey