Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. 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")
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
72 | |
71 | |
65 | |
42 | |
42 |
User | Count |
---|---|
49 | |
42 | |
29 | |
28 | |
26 |