Forum Discussion

afwork's avatar
afwork
Frequent Visitor
1 year ago
Solved

Switch not working when slicer is selected

Hello,   Please help. I am at a loss with this one.  This is my first time using Power BI and I have been trying to figure out why when I filter (using a slicer), the amount in Revenue does not ap...
  • TomasAndersson's avatar
    TomasAndersson
    1 year ago

    Hi, thanks for the data!
    Names on tables and columns and data are bit different compared to your screenshot so it's difficult for me to verify that this is what you're looking for. But you can find the .pbix here and check. If I've misunderstood how your data is structured, please let me know.

     

    I'm assuming now there is a relationship between the tables. 

     

    I needed to add ALL('BTCDisplay table') to the total Revenue measure to make it sum in the table, like this:

    EBITDA_Revenue = 
    CALCULATE(
        [EBITDA_Revenue_Apple] + [EBITDA_Revenue_Orange],
        ALL('BTCDisplay table')
    )

    But with this it seems to work.

    Does this fix your problem?

     

  • afwork's avatar
    afwork
    1 year ago

    I figured out why they work now. 

    Since I removed the BTCDisplay table and then reinstated it. It removed the relationship between the tables. When I add the relationship again, the switch dax on [01Revenue] does not work.