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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Filter account if star product line exists within assets of an account

Hi everyone, 

 

Fairly basic PowerBI user here, apologies if my question is perfectly formatted. 

 

I have the following data:

 

Accounts

IDName
1Contoso

 

Assets

Account_IDProduct_Line_ID
11

 

Product Line

IDName
1Star_Product

 

In my report I need to be able to filter the accounts based on if they have any products from our Star_Product line.

 

I was thinking that I could add a HasStar_Product field as a Boolean to my accounts table and then I could filter the page in my report by that Boolean but I can't work out the best way to do it, any guidance or assistance would be greatly appreciated. 

 

Cheers,

 

Coops

2 REPLIES 2
wdx223_Daniel
Super User
Super User

filter(accounts,calculate(count(productline[id]),productline[name]="start_product"))

Anonymous
Not applicable

Hi Daniel,

 

Thanks for your response, I assumed that it should have been product then product line. 

 

Coops_1-1620810921295.png

 

This is the error I received, any chance of another pointer please ? 

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors