Forum Discussion
Filter data in a table by date range from two different data segments
I have a "Mexus" table with a dataset, with a date column.
Then I have created two tables, which have the different possible dates that can be selected.
What I need is to filter the nexus table data between what is selected in Month 1 and what is selected in Month 2
It is not worth making a range on the same table, since other things are broken.
I leave a pbix example to see if someone can help me. Thank you!!
https://1drv.ms/u/s!AiHOzTzu7U3IgZA21zE7DwDoq4rtEg
Syndicate_Admin , These two tables should not join with your tables
You can create measure not table or calculated column
new measure
Movements =
var _min = minx(allselected(Calendar_Init), Calendar_Init[MONTH])
var _max = maxx(allselected(Calendar_End), Calendar_End[MONTH])return
calculate(Sum(Table[CPU]), FILTER(MEXUS, MEXUS[type]<> "baseline" && MEXUS[MONTH] >= _min && MEXUS[MONTH] <= _max))Select data between months - Month Range Slicer: https://youtu.be/nEt7dT3Tfv4
2 Replies
- amitchandakSuper User
Syndicate_Admin , These two tables should not join with your tables
You can create measure not table or calculated column
new measure
Movements =
var _min = minx(allselected(Calendar_Init), Calendar_Init[MONTH])
var _max = maxx(allselected(Calendar_End), Calendar_End[MONTH])return
calculate(Sum(Table[CPU]), FILTER(MEXUS, MEXUS[type]<> "baseline" && MEXUS[MONTH] >= _min && MEXUS[MONTH] <= _max))Select data between months - Month Range Slicer: https://youtu.be/nEt7dT3Tfv4
- Syndicate_AdminAdministrator
Although it has not served me 100% for what I wanted to achieve, it has served as a basis to be able to do it. Thank you very much for your help.