Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi,
I have a table like this, and I want to identify the new item that Shopper1 got compared to Monday. What would the formula look like in 'New Item' (Column D)?
Shopper | Day | Item | New Item |
Shopper1 | Monday | Apple | |
Shopper1 | Monday | Banana | |
Shopper1 | Monday | Orange | |
Shopper1 | Tuesday | Orange | |
Shopper1 | Tuesday | Apple | |
Shopper1 | Tuesday | Banana | |
Shopper1 | Tuesday | Lime | New Item |
Thanks!!
Solved! Go to Solution.
@wsspglobal
You can set the variable to any days
New column =
Var Monday_= CALCULATETABLE(VALUES('Table'[Item]),'Table'[Day]="Monday")
Var Tuesday_= CALCULATETABLE(VALUES('Table'[Item]),'Table'[Day]="Tuesday")
return IF(Tuesday_ in Monday_,BLANK(),[Item])
Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@wsspglobal
You can set the variable to any days
New column =
Var Monday_= CALCULATETABLE(VALUES('Table'[Item]),'Table'[Day]="Monday")
Var Tuesday_= CALCULATETABLE(VALUES('Table'[Item]),'Table'[Day]="Tuesday")
return IF(Tuesday_ in Monday_,BLANK(),[Item])
Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @wsspglobal
you can try LOOKUPVALUE() column like
New Item =
var _inMonday = LOOKUPVALUE('Table'[Shopper],'Table'[Shopper],[Shopper],'Table'[Item],[Item],'Table'[Day],"Monday")
RETURN
if(ISBLANK(_inMonday),"New Item",BLANK())
User | Count |
---|---|
123 | |
70 | |
67 | |
58 | |
52 |
User | Count |
---|---|
183 | |
92 | |
67 | |
62 | |
52 |