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 Team,
I have 3 columns Id, Location, date , please check below table : -
Id | Location | Date | New Calculated Column |
1 | New York | 5 March | New York |
1 | New York | 6 March | New York |
2 | New York | 5 March | Multiple States |
2 | California | 6 March | Multiple States |
I want to acheive this result of New calculted column, could you please help me with this ?
Thanks,
Shubham
Hi @Anonymous
try a measure
Measure =
IF(
CALCULATE(DISTINCTCOUNT(Table[Location]), ALLEXCEPT(Table, Table[Id]) ) = 1,
MAX(Table[Location]),
"Multiple States"
)
Thanks it is working as measure but i wanted a calculated column as i wanted to use it in Donut chart.
@Anonymous
do almost the same
Column =
IF(
CALCULATE(DISTINCTCOUNT(Table[Location]), ALLEXCEPT(Table, Table[Id]) ) = 1,
Table[Location],
"Multiple States"
)
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 |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |