Forum Discussion

TechPain's avatar
TechPain
Frequent Visitor
3 years ago

MTD, PYTD

I have a report where i've calucalated the MTD, Total, etc

 

MTDCases =
Var MTD_Cases=TOTALMTD([T_Cases],'Date'[Date], FILTER('Date','Date'[Date]<=TODAY()))
Return
IF(ISBLANK(MTD_Cases),0,MTD_Cases)

 

T_Cases =

Var TotalCases = CALCULATE(DISTINCTCOUNT('Cases_Details'[Casenum]))
Return
TotalCases

 

when I use MTD, PYTD on the report it is including services that is not associated with the type of report selected.

is there anyway to exclude the services from displaying?

 

 

 

 

casenumdateservices
123503/01/2023cardiac
888503/03/2023pediatric
756903/01/2023thoracic
995503/04/2023ENT