Forum Discussion
Change Item Names In Legend from 2 Queries
- 5 years ago
Hi, awalsh ;
May be try to modify the measure as follows:
new = VAR _relation = CALCULATE ( MAX ( 'Table (2)'[Home] ), USERELATIONSHIP ( 'Table (2)'[ID], 'Table'[id] ) ) RETURN IF ( [Living] IN { "BH", "DD", "SA" } && _relation = "Home", [Living], _relation )The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi , awalsh ;
You could create a column to concatenate these two columns , and you colud use this column as "Legend".
new = CALCULATE(MAX('Table'[Living]),USERELATIONSHIP('Table'[id],'Table (2)'[ID]))
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- awalsh5 years agoHelper I
Thank you so much for your help!!! This is definitely getting me closer to what I'm trying to do.
There is just one thing -
I added the column "new" (screenshot below) but the formula is marking the BH, DD, and SA as "Home" where I need them to say BH, DD and SA respectively. The rest of the values are appearing correctly in the "new column".
Is there a way to get these 3 items to show as BH, DD and SA instead of showing as "Home" while keeping the rest of the values in the new column the same?
Thank you again for your help!!!
- v-yalanwu-msft5 years agoCommunity Support
Hi, awalsh ;
May be try to modify the measure as follows:
new = VAR _relation = CALCULATE ( MAX ( 'Table (2)'[Home] ), USERELATIONSHIP ( 'Table (2)'[ID], 'Table'[id] ) ) RETURN IF ( [Living] IN { "BH", "DD", "SA" } && _relation = "Home", [Living], _relation )The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.- awalsh5 years agoHelper I
THANK YOU SO MUCH! This is perfect!!!!