Forum Discussion
FILTER TABLE BASED ON SELECTED VALUE
Dear All,
I have this situation. In one table i have costs and revenues for each order/job:
| OrderN | Type Costs | Date_operations | Values |
| 1 | Revenue | 1000 | |
| 1 | Cost1 | 01-05-2020 | -300 |
| 1 | Cost2 | -200 | |
| 1 | Cost3 | -100 | |
| 2 | Revenue | 1000 | |
| 2 | Cost1 | 03-05-2020 | -300 |
| 2 | Cost2 | -200 | |
| 2 | Cost3 | -100 | |
| 3 | Revenue | 1000 | |
| 3 | Cost1 | 03-05-2020 | -300 |
| 3 | Cost2 | -200 | |
| 3 | Cost3 | -100 |
I gave the opportunity to filter a report based on Date_Operation, so that we can obtain what we have done in one day. I need to show instead in one visual, keeping the selected date filter, to show all the order and all the lines that includes the selected job.
For example I have selected the date '03/05/2020' and i wish to see in the a table this result (all the lines orders of the selected date).
| 2 | Revenue | 1000 | |
| 2 | Cost1 | 03/05/2020 | -300 |
| 2 | Cost2 | -200 | |
| 2 | Cost3 | -100 | |
| 3 | Revenue | 1000 | |
| 3 | Cost1 | 03/05/2020 | -300 |
| 3 | Cost2 | -200 | |
| 3 | Cost3 | -100 |
thanks for help.
4 Replies
- Greg_Deckler
Community Champion
You need a complex selector like what I have attached. It is based on the concept of the Inverse Selector. Basically, you need to filter your table by date. Then you need to get a distinct list of your order id's. Your selector would check if a row's order id is IN the list.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Inverse-Selector/m-p/648290#M325
- AnonymousNot applicable
Greg_Deckler , Thank you for the solution. I am working on something similar, but I need a little more help from you. Instead of showing the last 4 weeks in the selection, can we show the current week, last week & same week last month (3 columns)?
- Greg_Deckler
Community Champion
- camargos88
Community Champion
Todi79 ,
Another approach would be fix the date value on columns:
Did I answer your question? Mark my post as a solution!
Ricardo