Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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"
)
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
90 | |
84 | |
70 | |
49 |
User | Count |
---|---|
141 | |
121 | |
112 | |
59 | |
58 |