Forum Discussion
Create calculated column from a calculation in a different table
- Anonymous6 years ago
Hi mq2020 ,
Please try to create the following measure to get the flag of every organization with claim:
Org Claiming YN = VAR sumofClaimU = CALCULATE ( DISTINCTCOUNT ( 'User'[User] ), 'User'[User Claimed Y/N] = "y" ) RETURN IF ( sumofClaimU > 0, "Y", "N" )Best Regards
Rena
Hi again,
So I think I found a way to add that extra column however when I try to use IF to do the classification it's giving me a "circular dependancy error" - any idea how to get around this?
I first created a column in table Users to change Y N to 0 and 1 (Just so i can then sum this in the next step)
Hi mq2020 ,
Please try to create the following measure to get the flag of every organization with claim:
Org Claiming YN =
VAR sumofClaimU =
CALCULATE ( DISTINCTCOUNT ( 'User'[User] ), 'User'[User Claimed Y/N] = "y" )
RETURN
IF ( sumofClaimU > 0, "Y", "N" )Best Regards
Rena
- mq20206 years ago
Helper III
Thank you so much Anonymous !
I actually applied the same to a calculated column istead of measure so that I could use the column to split my line chart using the Legend Box and use the grouping in slicers which the measure wasnt allowing me to do.