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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Tabke with multiple conditions - does value contain

Hi all,

 

I have a request that is somewhat hard to explain in a topic, but I will try.

 

We have a "Supplier" table containing "Company", "Supplier Group", "Supplier Name", "Language" and "Job Type":

 

CompanySupplier GroupSupplier NameLanguageJob Type
Best BuyPrimaryJohnEnglishNormal
Best BuyPrimaryJohnEnglishAdvanced
Best BuyPrimaryJohnDutchNormal
Best BuyPrimaryJohnDutchAdvanced
Best BuyPrimaryJohnGermanNormal
Best BuyPrimaryJohnFinnishNormal
Best BuyPrimaryMichelleEnglishNormal
Best BuyPrimaryMichelleEnglishAdvanced

 

We are interested in finding out:

What Company/Supplier Group/Language combinations include "Advanced" Job Type.

 

Output could be like:

 

CompanySupplier GroupSupplier NameLanguageHas Advanced?
Best BuyPrimaryJohnEnglishYes
Best BuyPrimaryJohnDutchYes
Best BuyPrimaryJohnGermanNo
Best BuyPrimaryJohnFinnishNo
Best BuyPrimaryJohnDanishNo
Best BuyPrimaryMicheleEnglishYes

 

So in the above table we can see that for Company: "Best Buy", Supplier Group: "Primary" and Language: "English", we have 2/2 suppliers with "Advanced". So we would like to show that.

 

So basically I would like - in a matrix - to show ALL suppliers per Company/Supplier Group/Language combination and then a measure(or something) saying "Has Advances" Yes/No. So we can see for each Company/Supplier Group/Language all the suppliers, and whether they have it or not.

 

Thanks!

1 ACCEPTED SOLUTION
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1594876381115.pngv-lionel-msft_1-1594876393791.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to my .pbix file.

v-lionel-msft_0-1594876381115.pngv-lionel-msft_1-1594876393791.png

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Fowmy
Super User
Super User

@Anonymous 

You can add a new column:

 

Advanced = 
VAR _Adv = CALCULATE(
    COUNTROWS('Table'),
    'Table'[Job Type]="Advanced")
RETURN

IF(_Adv>0,"YES","NO")

 

Fowmy_0-1594879313398.png

 

 

If you are satisfied with my answer, please mark it as a solution so others can easily find it.

Don't forget to give KUDOS ? to replies that help answer your questions


Subscribe to ExcelFort: Learn Power BI, Power Query and Excel

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@Anonymous  not able to match logic, like there are additional languages for John, also there only one advance for English . So not very clear.

 

You can new columns like this

countx(filter(Table,[Supplier Name] =earlier([Supplier Name]) && [Language] =earlier([Language])),[Supplier Name] )

 

countx(filter(Table,[Supplier Name] =earlier([Supplier Name]) && [Language] =earlier([Language]) && [Job Type] = "Advanced"),[Supplier Name] )

 

or var in column calculation and take decision

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors