Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
81 | |
66 | |
58 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |