Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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"
)
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
91 | |
84 | |
76 | |
65 |
User | Count |
---|---|
145 | |
109 | |
109 | |
102 | |
96 |