Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |