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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I want to create new column with value that will be set like this:
i have ID, type, Date columns
If my type is "A"
and there is row where its ID equals to mine
and its date bigger then my
and its type is "B"
then value = "C"
else value = "D"
Thanks !
Solved! Go to Solution.
Hi @benalfassy
Try this
=
IF (
Table1[Type] = "A"
&& COUNTROWS (
FILTER (
Table1,
Table1[ID] = EARLIER ( Table1[ID] )
&& Table1[Type] = "B"
&& Table1[Date] > EARLIER ( Table1[Date] )
)
)
> 0,
"C",
"D"
)
Hi @benalfassy
Try this
=
IF (
Table1[Type] = "A"
&& COUNTROWS (
FILTER (
Table1,
Table1[ID] = EARLIER ( Table1[ID] )
&& Table1[Type] = "B"
&& Table1[Date] > EARLIER ( Table1[Date] )
)
)
> 0,
"C",
"D"
)
Thanks!!!!!!!!!!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 25 |
| User | Count |
|---|---|
| 124 | |
| 87 | |
| 70 | |
| 66 | |
| 65 |