Forum Discussion
GTS_ONE
Advocate II
8 years agoCan a Measure sum other rows besides itself?
Hi all, So I know that the scenario I'm about to describe can rather easily be done by creating summary tables and joining them, etc. But we have a particular situation where we're trying to see...
- 8 years ago
Hi, try with this measure:
Does ID Have Only Blue? = IF ( HASONEVALUE ( Table1[ID] ), IF ( SELECTEDVALUE ( Table1[Color] ) = "Blue", IF ( COUNTROWS ( FILTER ( ALL ( Table1 ), Table1[ID] = SELECTEDVALUE ( Table1[ID] ) ) ) = 1, "Yes", "No" ), "No" ) )Regards
Victor
Lima - Peru
dtartaglia
Resolver I
8 years agoHi Matt,
I may be cofused by the question but if I create your table in Excel, the below measure will show your results:
ID Blue = IF(VALUES(Sheet1[ID]) = 4 && VALUES(Sheet1[color]) = "blue", "YES", "no")
MattAllington
Community Champion
8 years ago
dtartaglia wrote:
I may be cofused by the question but if I create your table in Excel, the below measure will show your results:
ID Blue = IF(VALUES(Sheet1[ID]) = 4 && VALUES(Sheet1[color]) = "blue", "YES", "no")
the problem with this formula is that it only works for the test data loaded. What will this formula do if there is a new row of test data with ID = 5 and color = "blue". Your formula will return no, mine will return true