Forum Discussion

vm8181's avatar
vm8181
Frequent Visitor
1 year ago
Solved

Measure for Context Based Sales Calculation Not Showing Correct Total

Hi everyone, I am facing an issue with a dax measure in Power BI that calculates sales based on different attributes from multiple tables. The measure works correctly at the individual row level but...
  • johnt75's avatar
    1 year ago

    You could create a disconnected table containing the different types of table you are showing - City, Keyword match type etc. Add this as a filter to each table visual, selecting just the value applicable to that table.

    Change your measure so that instead of using ISINSCOPE you check the SELECTEDVALUE of the disconnected table column, and then perform the appropriate calculation.

  • mark_endicott's avatar
    1 year ago

    vm8181 - You won't be able to acheive this with ISINSCOPE - because that is always FALSE at the total level - without an incredibly horrendous final condition. 

     

    Honestly, the best way to acheive this is by modelling your data - I know you say this is not an option, but someone in your organisation can access the model and help you with it. A disconnected table that unions all your appropriate revenues together and then can be used as filter will make this 100 times easier than trying to solve with DAX alone.