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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors