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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
LadislavCarda
Frequent Visitor

Invoices that contains only one kind of category (product)

Hi,

 

i have a table with products, invoices, and row (where is located on warehouse)

 

It looks like this

Invoice IDProduct IDRow in Warehouse
20200223A100
20200223A200
20200224A100
20200225A100
20200225A3

01

20200225A4

00

 

From this table, i want to see only invoices that contains ONLY products in Row 00.

 

In output should be Invoice ID 20200223 and 20200224.

Invoice ID 20200225 should not be in final results.

 

I tried contains, filters, but no luck.

 

Thank You!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@LadislavCarda ,

Try a measure like

measure =
countx(filter(summarize(Table, Table[Invoice ID], "_1",count(table[Row in Warehouse]), "_2", calculate(count(table[Row in Warehouse]), filter(Table, Table[Row in Warehouse] ="00")) ),[_1]=[_2]),[Invoice ID])

View solution in original post

2 REPLIES 2
LadislavCarda
Frequent Visitor

Thank You!

amitchandak
Super User
Super User

@LadislavCarda ,

Try a measure like

measure =
countx(filter(summarize(Table, Table[Invoice ID], "_1",count(table[Row in Warehouse]), "_2", calculate(count(table[Row in Warehouse]), filter(Table, Table[Row in Warehouse] ="00")) ),[_1]=[_2]),[Invoice ID])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.