Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I have two tables Sales and Product. The Sales table is a transactional table, so it has columns like Order No, Order Line No, ProductKey, Value etc..
The Product table just has one column called ProductKey
The two tables are joined together by ProductKey
I want to add another column to the Sales table by doing a calculated column or measure (whichever one is best) which I want to call "Special Product" where if the ProductKey from the Sales table exists in the Product table then label this as Yes else if it does not exists then No
Thanks
Solved! Go to Solution.
@AvPowerBI Maybe:
Column =
VAR __ProductKey = [ProductKey])
VAR __Match = COUNTROWS(FILTER('Product',[ProductKey] = __ProductKey))
RETURN
IF(ISBLANK(__Match),"No","Yes")
@AvPowerBI Maybe:
Column =
VAR __ProductKey = [ProductKey])
VAR __Match = COUNTROWS(FILTER('Product',[ProductKey] = __ProductKey))
RETURN
IF(ISBLANK(__Match),"No","Yes")
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
93 | |
85 | |
83 | |
71 | |
49 |
User | Count |
---|---|
143 | |
132 | |
110 | |
66 | |
55 |