Forum Discussion

DoesNotCompute's avatar
DoesNotCompute
Regular Visitor
2 years ago
Solved

Filter Results by Multiple Tables

I have a data set like the below and am building a report in Power Pivot. Thanks to previous help HERE, I was able to make a pivot table that excluded any citites from the pivot table that were not i...
  • DataNinja777's avatar
    2 years ago

    Hi DoesNotCompute 

    Thank you for your follow up and clarification of the issue. I tried to produce your required output in a single formula, but it didn't work, but when I split the measure in two, first producing the measure like below, and then in a separate measure, sumxing it over 'City, State' dimension, it produced your required output.  I am not sure why it couldn't be done in one measure, but it must be due to the intricate filter contect related matter as you said.  

    In the second measure where it sumxed over the 'City, State' dimension, it is simply like below.  

    Sumx_City_State_BothRtlrsECOnly = sumx(City_State,[BothRtlrsECOnly])

    I also encountered similar issues, where it didn't produce the intended output in one long measure, but when I split it out in two measures, it produced the required output.  

    I attach the pbix file below.