The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |