Forum Discussion
Narendra90
3 years agoFrequent Visitor
dynamic filter criteria
Hi Team, I have created mulitiple measures in dashboard. All measures based on different columns ( Project value, Initial value, Actual value, No of emp etc). However everyone has same filter criter...
- 3 years ago
You can create a measure and reference that in another measure
filter measure = CALCULATE ( COUNTROWS ( 'table' ), FILTER ( 'table', 'table'[country] = "India" && 'table'[year] = 2021 ) )another measure = CALCULATE ( SUM ( 'table'[value] ), FILTER ( 'table', [filter measure] <> BLANK () ) )
Narendra90
3 years agoFrequent Visitor
Hey, Any other solution? cant create column here. Its connected to live data. we can request to create column once but modifing criteria multiple time would be headache to admin.
cant we create measure and refer that in another something like this.
danextian
3 years agoSuper User
You can create a measure and reference that in another measure
filter measure =
CALCULATE (
COUNTROWS ( 'table' ),
FILTER ( 'table', 'table'[country] = "India" && 'table'[year] = 2021 )
)
another measure =
CALCULATE (
SUM ( 'table'[value] ),
FILTER ( 'table', [filter measure] <> BLANK () )
)