Forum Discussion
abhiram342
Microsoft Employee
2 years agoSlice Data for column with command seperated values
Hi Team, I have Fact and Dimension table and One of Column in Fact Table has comma seperated values and I want to slice data when I filter particular value from it. Please find below example ...
- 2 years ago
abhiram342 , you can use this measure:
AverageRunTime = VAR appname = SELECTEDVALUE ( Applications[ApplicationName] ) VAR t = FILTER ( ALL ( FactPipeline[ApplicationName] ), CONTAINSSTRING ( FactPipeline[ApplicationName], appname ) ) RETURN CALCULATE ( AVERAGE ( FactPipeline[RunTime (Mins)] ), t )
ERD
Community Champion
2 years agoabhiram342 , you can use this measure:
AverageRunTime =
VAR appname = SELECTEDVALUE ( Applications[ApplicationName] )
VAR t =
FILTER (
ALL ( FactPipeline[ApplicationName] ),
CONTAINSSTRING ( FactPipeline[ApplicationName], appname )
)
RETURN
CALCULATE ( AVERAGE ( FactPipeline[RunTime (Mins)] ), t )