Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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"
)
User | Count |
---|---|
101 | |
90 | |
80 | |
71 | |
70 |
User | Count |
---|---|
114 | |
99 | |
97 | |
73 | |
72 |