Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Help with a calculated column

I am new to PowerBI so please forgive my newbie question here. I have two tables Computers and Software with a one to many relationship. I am trying to figure out how to determine if a ComputerID in the Computers table has Adobe Reader listed in the Software table and if so return a custom value and if not return another value.

 

Computers

ComputerIDDeviceNameNewColumn
1Laptop1 
2Laptop2 
3Laptop3 

 

Software

ComputerIDSoftwareSuite
1Adobe Reader
1Google Chrome
2Google Chrome
2AutoCAD
3Adobe Reader
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @Anonymous 

create a measure

NewColumn = IF(CALCULATE(COUNTROWS(Software), Software[SoftwareSuite]="Adobe Reader") > 0, "custom value", "another value")

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Community Champion
Community Champion

Hi @Anonymous 

create a measure

NewColumn = IF(CALCULATE(COUNTROWS(Software), Software[SoftwareSuite]="Adobe Reader") > 0, "custom value", "another value")

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

Thanks, creating a measure did not seem to work, but using that formula in create a new column did work well.

 

thanks again

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors