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.
Hi,
I have the following table:
and two slicers, one for Room Code and another for Room Code Dup Boys. I am trying to create a measure (new) that would output the sum of count for the items selected with the Room Code Dup Boys slicer while ignoring any other slicers on the page that have values selected. I have tried different combinations using CALCULATE(), ALL(), ALLEXCEPT(), etc., but nothing seems to work. I am using a card visualisation to display the measure, and I haven't been able to ignore the other slicers succesfully. My intention is to use the measure with other calculations, so I would prefer to use the measure to filter the data instead of the card visual filters.
Any help with this will be very appreciated.
Hi @tamerj1,
Thank you very much for your help 😊. I have tried this:
but I'm still getting Blank as an output.
Do you know where the error might be?
Thank you!
@ji890 Responding to your PM, try this:
Measure =
VAR __DupBoys = DISTINCT('Sheet1'[Room Code Dup Boys])
VAR __Table = FILTER(ALL('Sheet1'), [Room Code Dup Boys] IN __DupBoys)
VAR __Result = SUMX(__Table, [Count])
RETURN
__Result
Hi @Greg_Deckler ,
Thank you so much for your help and quick reply 😊. I have tried your suggestion but still not getting the expected outcome.
Do you have any other ideas? Thank you!
Hi @ji890
ALLEXCEPT won't work as long as the column is not part of the visual. You need to use ALL + VALUES like
CALCULATE (
[Measure],
ALL ( 'Table' ),
VALUES ( 'Table'[Column] )
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |