Forum Discussion
trailmax
7 years agoFrequent Visitor
Multiple columns join/goup
Hi I'm new to PowerBI, though I have developer background. I'm stuck now on a report that has 2 columns: one with vehicles count by type, location and month and another with days in service of ve...
- 7 years ago
Hi trailmax,
Please try this measure:
sum measure = CALCULATE ( SUM ( Service[ServiceLength] ), FILTER ( ALLSELECTED ( Service ), Service[Date] = SELECTEDVALUE ( FleetCount[Date] ) && Service[Location] = SELECTEDVALUE ( FleetCount[Location] ) && Service[Type] = SELECTEDVALUE ( FleetCount[Type] ) ) )Best regards,
Yuliana Gu
v-yulgu-msft
7 years agoMicrosoft Employee
Hi trailmax,
Please try this measure:
sum measure =
CALCULATE (
SUM ( Service[ServiceLength] ),
FILTER (
ALLSELECTED ( Service ),
Service[Date] = SELECTEDVALUE ( FleetCount[Date] )
&& Service[Location] = SELECTEDVALUE ( FleetCount[Location] )
&& Service[Type] = SELECTEDVALUE ( FleetCount[Type] )
)
)
Best regards,
Yuliana Gu
- trailmax7 years agoFrequent Visitor
v-yulgu-msft that was the right combination. I was missing `ALLSELECTED` from my attempts to fix the problem. Thank you!