Forum Discussion
Oros
Post Prodigy
3 years agoAdd filter to a measure
Hello. How do you add filters to a measure? I plan to create 2 measures (with filters) and add them together by creating another measure. For example, I would like to create a measure for SA...
- 3 years ago
First of all define the base measure
Base Sales Measure := SUM('MyTable'[Sales])Then you can build on top of that measure
Sales For Selected Customers January := CALCULATE([Base Sales Measure], 'MyTable'[Customer Name] in {"A", "B", "C"}, 'DimDate'[MonthName] = "January" )I hope you got the logic
JirkaZ
Solution Specialist
3 years agoFirst of all define the base measure
Base Sales Measure := SUM('MyTable'[Sales])Then you can build on top of that measure
Sales For Selected Customers January := CALCULATE([Base Sales Measure],
'MyTable'[Customer Name] in {"A", "B", "C"},
'DimDate'[MonthName] = "January"
)I hope you got the logic