Forum Discussion
Anonymous
4 years agoNot applicable
Create a new flag column with subquery filtering
Team, Can someone please help me with the below request? I have a SalesTransaction table like below. I need to create a Flag column with this condition. Condition: First I have to find the Trans...
- 4 years ago
Hi, Anonymous
You can try to create a calculated column as below and apply it as a visual filter.
New Flag = VAR _tab1 = SUMMARIZE ( FILTER ( ALLSELECTED ( SalesTransaction ), SalesTransaction[ACCOUNT ID] = 3 ), SalesTransaction[TRANSACTION ID] ) RETURN IF ( COUNTROWS ( FILTER ( _tab1, SalesTransaction[Transaction ID] = EARLIER ( SalesTransaction[Transaction ID] ) ) ) > 0, TRUE (), FALSE () )Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
4 years agoNot applicable
amitchandak - Any update on my above request?
v-easonf-msft
Community Support
4 years agoHi, Anonymous
You can try to create a calculated column as below and apply it as a visual filter.
New Flag =
VAR _tab1 =
SUMMARIZE (
FILTER ( ALLSELECTED ( SalesTransaction ), SalesTransaction[ACCOUNT ID] = 3 ),
SalesTransaction[TRANSACTION ID]
)
RETURN
IF (
COUNTROWS (
FILTER (
_tab1,
SalesTransaction[Transaction ID] = EARLIER ( SalesTransaction[Transaction ID] )
)
) > 0,
TRUE (),
FALSE ()
)
Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous4 years agoNot applicable
Hey v-easonf-msft - This is exactly what I'm looking for. Thanks so much!