Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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")
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
66 | |
62 | |
52 | |
36 | |
34 |
User | Count |
---|---|
78 | |
66 | |
58 | |
45 | |
43 |