Forum Discussion
selpaqm
5 years agoHelper V
earlier function combine with other columns
Hi, I have a table as below. Column uses "Column = VAR _count= CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[salesman/country]=EARLIER('Table'[salesman/country])&&'Table'[Index]>=EAR...
- 5 years ago
selpaqm , refer this can work as a new column
Column =
VAR _count= CALCULATE(DistinctCount([Method]) ,FILTER('Table','Table'[salesman/country]=EARLIER('Table'[salesman/country])))+0
return if(_count>1,"Mixed", [method])
Greg_Deckler
5 years agoCommunity Champion
selpaqm First, DAX Formatter is your friend: https://www.daxformatter.com/
Column =
VAR __Table =
SUMMARIZE(
FILTER (
'Table',
'Table'[salesman/country] = EARLIER ( 'Table'[salesman/country] ),
[method]
)
RETURN
IF ( COUNTROWS(__Table>1, "mixed", MAXX(__Table,[method]) )
If not, share data as text in a table please.
- selpaqm5 years agoHelper V
- amitchandak5 years agoSuper User
selpaqm , refer this can work as a new column
Column =
VAR _count= CALCULATE(DistinctCount([Method]) ,FILTER('Table','Table'[salesman/country]=EARLIER('Table'[salesman/country])))+0
return if(_count>1,"Mixed", [method]) - Greg_Deckler5 years agoCommunity Champion
selpaqm No access to that file
- selpaqm5 years agoHelper V
can you please retry it.exampl.pbix