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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
nrungta
Frequent Visitor

Apply two rows filter

My data has a column Country. I have data points of 10 countires in the Country Column. Now I want to use average Sales of only two countries, USA and India. 
1. How can I use this in a Measure?
2. How can I make a new table from it?
Thanks in Advance

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Measure

AverageSales = Calculate([Your Average Calculation], Filter([Your Table], Country = "USA" || Country = "India")

 

New Table

Option1:

Look at this post by @v-jiascu-msft to create a summaryized table

https://community.powerbi.com/t5/Desktop/Summarize-Table-and-Filter-by-Date/m-p/465088/highlight/tru...

 

Option 2: 

Or from Power Query you could always create a reference to your original table and filter out data not related to USA or India. This would leave you with just the data your loking for. 

 

 

View solution in original post

v-eachen-msft
Community Support
Community Support

Hi @nrungta ,

 

You could create a new table with CALCULATETABLE() function.

Table 2 =
CALCULATETABLE (
    test,
    FILTER ( test, test[country] = "India" || test[country] = "US" )
)

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hi @nrungta ,

 

You could create a new table with CALCULATETABLE() function.

Table 2 =
CALCULATETABLE (
    test,
    FILTER ( test, test[country] = "India" || test[country] = "US" )
)

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Measure

AverageSales = Calculate([Your Average Calculation], Filter([Your Table], Country = "USA" || Country = "India")

 

New Table

Option1:

Look at this post by @v-jiascu-msft to create a summaryized table

https://community.powerbi.com/t5/Desktop/Summarize-Table-and-Filter-by-Date/m-p/465088/highlight/tru...

 

Option 2: 

Or from Power Query you could always create a reference to your original table and filter out data not related to USA or India. This would leave you with just the data your loking for. 

 

 

After applying these two row filters of USA and India. Can I apply more filters of another column (Zone) and filter further to  'South' and 'North'

@Anonymous @v-eachen-msft 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.