Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Help please!!!
dataset of 2 years with names like this example:
Name Year
anna 2022
John 2022
karen 2022
John 2023
i want a colum next to it with the answer "Both years" or "single year" so john would be "Both years" and Karen "single year"
many thanks :):)
Solved! Go to Solution.
hi @Anonymous
try like:
Column =
IF(
COUNTROWS(
FILTER(
TableName,
TableName[Name]=EARLIER(TableName[Name])
)
)=2,
"Both years",
"Single years"
)
worked like:
hi @Anonymous
try like:
Column =
IF(
COUNTROWS(
FILTER(
TableName,
TableName[Name]=EARLIER(TableName[Name])
)
)=2,
"Both years",
"Single years"
)
worked like:
hi @Anonymous
try like:
this doesnt work i get a error in =Earlier rule
there are something missing, see the latest reply.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 5 | |
| 3 |
| User | Count |
|---|---|
| 28 | |
| 20 | |
| 19 | |
| 19 | |
| 12 |