Forum Discussion
Anonymous
8 years agoNot applicable
Filter on FIRSTNONBLANK
Hi, I want to calculate something and filter on a string value in a DAX formula. In my slicer I select some string values and I want to calculate the value of the first string value. But thi...
- 8 years ago
hI Anonymous
Try this
Measure = VAR MYVALUE = FIRSTNONBLANK ( 'Table'[StringColumn], 0 ) RETURN CALCULATE ( SUM ( 'Table'[value] ), 'Table'[StringColumn] = myvalue )
Zubair_Muhammad
Community Champion
8 years agohI Anonymous
Try this
Measure =
VAR MYVALUE =
FIRSTNONBLANK ( 'Table'[StringColumn], 0 )
RETURN
CALCULATE ( SUM ( 'Table'[value] ), 'Table'[StringColumn] = myvalue )