Forum Discussion
JCuoco
4 years agoRegular Visitor
Creating New Value from Previous Values
I am looking to create a new measure/column from a previous field that has more than one value in it. We have a field that outlines two different types of visit types and i want to see which indi...
Anonymous
4 years agoNot applicable
Hi JCuoco ,
You can create a calculated column as below to get it:
Column =
VAR _count =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Type of Facility] ),
FILTER ( 'Table', 'Table'[Patient] = EARLIER ( 'Table'[Patient] ) )
)
RETURN
IF ( NOT ( ISBLANK ( _count ) ), IF ( _count = 1, "One", "Both" ), BLANK () )
Best Regards
JCuoco
4 years agoRegular Visitor
appreciate the help but this didnt work - i think i know why it didnt, as i am using two separate data sets. I probably should have mentioned that previosly. Column A and B are in different sets.
Apologies for that
- Anonymous4 years agoNot applicable
Hi JCuoco ,
Could you please some sample data from those two "data sets" which column A and B located in? Is there any relationship between these two "data sets"? If yes, please provide the relationship info. It is better if you can share a simplified pbix file with me. You can refer the following thread to upload your file in the community. Thank you.
How to upload PBI in Community
Best Regards