Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi,
I have a table as below.
Column uses
however, in case of method a and b is for same country and salesman need to be written as mixed.
as an example updated method column should be as below.
below you may find the related pbix file
Solved! Go to Solution.
@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])
@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.
unfortunately, taken error.
at above link you may find my find pbix file.
Regards,
@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])
@selpaqm No access to that file
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 18 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 37 | |
| 30 | |
| 26 |