Forum Discussion
Exclude Certain Values from Filter based on logic from Disconnected Table
- 4 years ago
CaveOfWonders it's hard to understand 🙂 It depends on where you select and choose filters on the projects. If it's on the dim, then of course no but you can achive it by adding to my measure something like:
CALCULTE( COUNTROWS(Reporing Periods), CROSSFILTER(Published Dashboards[ReportingDate], Reporting Dashboards[ReportingDate], BOTH), TREATAS(VALUES(Projects[[Project ID]), Published Dashboards[Project ID]).
You need to test it, I doesn't have all the data on your model. Hope that the answer you need.
CaveOfWonders it's hard to understand 🙂 It depends on where you select and choose filters on the projects. If it's on the dim, then of course no but you can achive it by adding to my measure something like:
CALCULTE( COUNTROWS(Reporing Periods), CROSSFILTER(Published Dashboards[ReportingDate], Reporting Dashboards[ReportingDate], BOTH), TREATAS(VALUES(Projects[[Project ID]), Published Dashboards[Project ID]).
You need to test it, I doesn't have all the data on your model. Hope that the answer you need.
Okay, thank you :). I will test and get back to you with the resutls. Hopefully it works. I've been struggling with this all afternoon.
SpartaBI
Tested: Not Working. Getting the following error:
- SpartaBI4 years agoCommunity Champion
CaveOfWonders you need to create that relatinship I showed in my original picture of course 🙂 and it can be one direction because we will use that measure on the visual level filter of the slicer.
- CaveOfWonders4 years agoHelper IV
SpartaBI I created the relationship as advised:
Measure being used:
measure = CALCULATE ( COUNTROWS ( 'Reporting Periods' ), CROSSFILTER ( 'Published Dashboards'[Reporting Date], 'Reporting Periods'[ReportingDate], BOTH ), TREATAS ( VALUES ( Projects[Project ID] ), 'Published Dashboards'[Project ID] ) )but not working as expected. Project 7 should only have the 14th April and 9th June in the filter. The measure is counting a 1 for them all.
- SpartaBI4 years agoCommunity Champion
CaveOfWonders The measure is only meant to put on the visual level filter of the slicer.
Also, regaring the other filter, is it applied: