Forum Discussion
Expression with the Today () function
- Anonymous9 years ago
I created the measure but the following error is occurring:
"A single value for column 'Dt. Extension' in table 'DMEGF_ContractsSupplier' can not be determined." This can happen when a measure refers to a column that contains many values without specifying an aggregation such as min, max, count, or to Get a single result. "
If (ISBLANK (DMEGF_ContractsSupplier);
DMEGF_ContractsProvider [Dt. Final] - TODAY ();
DMEGF_ContractsProvider [Dt. Extension] - TODAY ())
Anonymous
Hi, Look this thread, i think would be part of the solution
- Sean9 years agoCommunity Champion
Anonymoussince you're always dealing with TODAY - you just need to check IF there has been an extenstion to determine which date to use in the subtraction (at least that's how I understand your question)
If that is the case you can try this
Column (Days) = IF ( ISBLANK ( 'Table'[Dt. Prorrogação] ); 'Table'[Dt. Final] - TODAY (); 'Table'[Dt. Prorrogação] - TODAY () )EDIT: You may have to change the Data Type of the Column in the Modeling Tab to Whole Number otherwise will show you dates!
- Anonymous9 years agoNot applicable
I created the measure but the following error is occurring:
"A single value for column 'Dt. Extension' in table 'DMEGF_ContractsSupplier' can not be determined." This can happen when a measure refers to a column that contains many values without specifying an aggregation such as min, max, count, or to Get a single result. "
If (ISBLANK (DMEGF_ContractsSupplier);
DMEGF_ContractsProvider [Dt. Final] - TODAY ();
DMEGF_ContractsProvider [Dt. Extension] - TODAY ())
- Sean9 years agoCommunity Champion
AnonymousThis is a Calculated Column not a Measure!