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
Hemanttripathi
Regular Visitor

FILTER same Data for multiple products

Hello BI users,

 

Greetings!

 

I am a newbie in Power BI and looking for some help;

 

I have data consisting of multiple columns with users and product name as following example;

BranchmonthUsernameEmplIDBranch product nameTotal salessalescountYearMonth
XXXX142365123456ABCA1120191
    B20220182
    V5520153
    D0820153
    F60920184
    C801020191
         

 

My requirement is to create new table with all existing columns from data table and filter all data to get product A, B, C in filtered new table.

 

I tried following under modelling by selecting "New Table".

 

Table 3 = Filter( Sales, RELATED(Sales [product name])="A", "B", "C")

 

However, I am recievcing an error.

Data table name: Sales

Column to filter: product name

Product type: A, B, C.

 

Can someone please suggest.

 

Thanks you,

Regards,

Hemant

1 ACCEPTED SOLUTION

Create a table using:

abcBranchSales = FILTER('Branch Sales', 'Branch Sales'[product name] in {"A", "B", "C"}) 

View solution in original post

3 REPLIES 3
Aree
Resolver I
Resolver I

Hey Mate,

 

Have you tried 

Summarize

 

Your syntax might look like this

Table3  = Summarize(Sales, Sales'Product Name', <expression>)

 

You can use an expression to do a sum if you so desire or do not do any aggregation and just list "total sales".

 

Hello Arre,

 

I will try as thats a next step, I was willing to do.

 

Regards,

Hemant

Create a table using:

abcBranchSales = FILTER('Branch Sales', 'Branch Sales'[product name] in {"A", "B", "C"}) 

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.