Forum Discussion
Column based on another table
- 2 years ago
Hello amtbew ,
try the following
Column = CALCULATE(COUNTROWS('Store Sales'),'Store Sales'[Sale Type] = "In Scope") - Anonymous2 years ago
Hi amtbew ,
If you want to put the result in the if function for judgment, just change the expression to:
InScopeSalesExists = IF( CALCULATE( COUNTROWS('Store Sales'), 'Store Sales'[Sale Type] = "In Scope" ) > 0, "Yes", "No" )The final result is shown below.
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi amtbew ,
If you want to put the result in the if function for judgment, just change the expression to:
InScopeSalesExists =
IF(
CALCULATE(
COUNTROWS('Store Sales'),
'Store Sales'[Sale Type] = "In Scope"
) > 0,
"Yes",
"No"
)
The final result is shown below.
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- amtbew2 years agoHelper I
Thanks, Anonymous this works but I think I need a different approach. I don't think I included enough info about my situation so I'll mark this as solved and open a fresh request with a better description.