Forum Discussion
ph
7 years agoHelper I
function LEFT as measure
Hi, I need to use LEFT() function for each row in table so as a measure in 'row context'. Because my report is based on powerBI dataset, I am unable to use LEFT() as a new column (this operation ...
- Anonymous7 years ago
[First 3 Chars for Batch No.] = -- measure var __oneBatchVisible = HASONEFILTER( T[Batch No.] ) var __chars = if ( __oneBatchVisible, var __currentBatch = VALUES( T[Batch No.] ) var __first3Chars = left( __currentBatch, 3 ) return __first3Chars ) RETURN __chars
Best
D.
Anonymous
7 years agoNot applicable
[First 3 Chars for Batch No.] = -- measure var __oneBatchVisible = HASONEFILTER( T[Batch No.] ) var __chars = if ( __oneBatchVisible, var __currentBatch = VALUES( T[Batch No.] ) var __first3Chars = left( __currentBatch, 3 ) return __first3Chars ) RETURN __chars
Best
D.
ph
7 years agoHelper I
Hi both
thank you for your help :)
I accept as solution the first one, because it is easier to understand it, second one is more complicated ..but works fine !!