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.
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.
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😀.
Solved! Go to Solution.
@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
@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
104 | |
87 | |
73 | |
66 |
User | Count |
---|---|
119 | |
111 | |
95 | |
79 | |
72 |