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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Mihir2203
Regular Visitor

Seperate filter for seperate columns in a table visual.

Hi Community Members,

 

I have a table visual with two columns Stock Quantity and Sales Quantity value. I need to filter this columns with two seperate filter.

 

Mihir2203_0-1707723446952.png

Consider in a First filter, Month = Mar is selected 'Stocks (QTY)' should filter data as per Month of March

and in Second Filter, Month = Jul and Aug is selected 'Sales (value)' should filter data as per Month of july and August.

 

Please advice how we can achieve this.

Thanks in advance😀

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Mihir2203 , You can use two disconnected or atleast one disconnected date table

 

//Date1 is independent Date table, Date is joined with Table

 

Stock Quantity measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Stock Quantity]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max))

 

 

//Date2 is independent Date table
new measure =
var _max = maxx(allselected(Date2),Date2[Date])
var _min = minx(allselected(Date2),Date2[Date])
return
calculate( sum(Table[Sales Quantity]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max))

 

 

Need of an Independent/disconnected Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Power BI How to use/compare two Date/Period slicers: https://youtu.be/WSeZr_-MiTg

 

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

View solution in original post

2 REPLIES 2
Mihir2203
Regular Visitor

Hi @amitchandak,

Thanks for the solution. Its working as expected

amitchandak
Super User
Super User

@Mihir2203 , You can use two disconnected or atleast one disconnected date table

 

//Date1 is independent Date table, Date is joined with Table

 

Stock Quantity measure =
var _max = maxx(allselected(Date1),Date1[Date])
var _min = minx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Stock Quantity]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max))

 

 

//Date2 is independent Date table
new measure =
var _max = maxx(allselected(Date2),Date2[Date])
var _min = minx(allselected(Date2),Date2[Date])
return
calculate( sum(Table[Sales Quantity]), filter('Table', 'Table'[Date] >=_min && 'Table'[Date] <=_max))

 

 

Need of an Independent/disconnected Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Power BI How to use/compare two Date/Period slicers: https://youtu.be/WSeZr_-MiTg

 

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors