Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 appear but it does when there is no filter.
[01Revenue] is a measure adding up [02Revenue_Apple] + [03Revenue_Orange]
I have changed [01Revenue] with a static number and that too did not work.
I have replaced MAX with SELECTEDVALUE, added true.
Solved! Go to Solution.
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?
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.
Hi @afwork ,
Would you consider providing the PBIX file(Please be sure to remove any sensitive data.)? It might help us better understand the issue.
Best Regards,
Bof
Not sure, but let's troubleshoot.
If you just have [01Revenue] as its own KPI card. Does it show a result with and without applied slicers?
If it does, it's likely the SWITCH statement. If it doesn't I would think it is the model.
Is there a reason that you use FORMAT(, ""#,##0") on all values and not just having the 01, 02, 03 measures formatted like that from the beginning?
01Revenue works with applied slicers. If you can see the images I have attached, one is with applied slicer (Office = 0105) and one without.
FORMAT was an after thought and it does not make a difference as I have tried SWITCH without it.
Thanks so much for replying.
Then I'm thinking it's the model and evaluation context. Somehow when Office 0105 is selected, MAX(BTCDisplay[Order]) does not equal 1 for that row.
Are you able to share the model, or what the tables look like?
Note: I do not necessarily need to use this dax. I just want to be able to add up in the same column without using a matrix. Other suggestions are welcome. Thanks!
Here's a sample of the data.
BTCDisplay table
Order | Main Account | BTC_ID |
1 | Revenue | |
2 | Venue | EBITDA_Revenue_Apple |
3 | Production | EBITDA_Revenue_Orange |
PL_Transactions
BTC_ID | OfficeCode | AccountingAmt | |||
EBITDA_Revenue_Orange | 0101 | -100000 | |||
EBITDA_Revenue_Apple | 0101 | -100000 | |||
EBITDA_Revenue_Orange | 0101 | -100000 | |||
EBITDA_Revenue_Apple | 0101 | -100000 | |||
EBITDA_Revenue_Apple | 0105 | -100000 | |||
EBITDA_Revenue_Apple | 0101 | -100000 | |||
EBITDA_Revenue_Orange | 0101 | -100000 | |||
EBITDA_Revenue_Orange | 0105 | -100000 |
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?
That worked! Thank you!!!!! Not sure if because of ALL().
I think it's because I opened your file. It mentioned something about your file being in a newer version. The reason I think that is because I have other measures adding up other measures like [01Revenue] but I didn't add ALL() to those, yet they somehow work now too.
This is what I did:
1. Opened your file
2. Opened my file, added ALL to [01Revenue]. It didn't seemed to work.
3. I removed BTCDisplay in my file and added it again.
4. Slicers now work.
WOW!
What version do you have?
Thank you again. I'm so excited! I really appreciated it.
Huh, strange. Can't tell you why, but great that it works now!
I have version 2.137.751.0 64-bit (October 2024)
Glad I could help!
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.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |