Forum Discussion
tonylitvak
8 years agoNew Member
Calculated Column based on filtered values of inside table
Hello everyone and thank you for your help in advance. This is my first post in this forum! I am trying to auto-calculate a new column called SuperCode. For this example, i've specified wwhat t...
- 8 years ago
Hi tonylitvak
Add this calculated ColumnSuperCode = IF ( CALCULATE ( COUNT ( Table1[FileName] ), FILTER ( ALL ( Table1 ), Table1[FileName] = EARLIER ( Table1[FileName] ) && Table1[Status] = "Success" ) ) > 0, "Success", "Failed" )
tonylitvak
8 years agoNew Member
Marcel, thank you very much. Im trying to keep this in the same table and looking for a DAX calculated column/measure.
Zubair_Muhammad
Community Champion
8 years agoHi tonylitvak
Add this calculated Column
SuperCode =
IF (
CALCULATE (
COUNT ( Table1[FileName] ),
FILTER (
ALL ( Table1 ),
Table1[FileName] = EARLIER ( Table1[FileName] )
&& Table1[Status] = "Success"
)
)
> 0,
"Success",
"Failed"
)- tonylitvak8 years agoNew Member
Zubair, thank you for the excellent response. It works! I'll try to make sense of the functions which is taking me a bit.