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 need some help in creating a measure that would always show the total_weights based on the two active filters selected, i.e., mpId and riskProfile. See snapshot below for context. Currently, my total_weights measure is showing the right number (i.e., 70% based on my snapshot below) when both active filters are applied. However, the measure value is refreshed when I select a row in the table visual (e.g., The measure is updated as 10% if I select acId = 10921081 from the table visual). Is there a way to create a measure that takes in only the 2 active filters (mpId and riskProfile) and ignores the rest?
Solved! Go to Solution.
First of all Percentage is a Non aditive measure. It cannot be summed up. It should be calculated inside in a measure itself.
Now, the eaisest option is which @sjoerdvn mentioned.--> Turned off the Edit interaction.
In dax, You need to igonore the filters from acid column .
Below code can work for you.
total weight =
CALCULATE(
SUM( 'Table'[Percent] ),
ALLEXCEPT('Table','Table'[Cateory],'Table'[RiskProfile])
)
Below screenshot
Attaching the pbix file for your reference.
Hope it helps
Regards
sanalytics
First of all Percentage is a Non aditive measure. It cannot be summed up. It should be calculated inside in a measure itself.
Now, the eaisest option is which @sjoerdvn mentioned.--> Turned off the Edit interaction.
In dax, You need to igonore the filters from acid column .
Below code can work for you.
total weight =
CALCULATE(
SUM( 'Table'[Percent] ),
ALLEXCEPT('Table','Table'[Cateory],'Table'[RiskProfile])
)
Below screenshot
Attaching the pbix file for your reference.
Hope it helps
Regards
sanalytics
Thanks, the suggested DAX expression works for me. Toggling with the interactions wouldn't work in this case since I need that measure for other downstream calculations.
@cylo ,If you want to remove all filters except for mpId and riskProfile, you can use the ALL function combined with KEEPFILTERS to keep only the desired filters:
DAX
total_weights =
CALCULATE(
SUM(mp_mix[percent]),
ALL(mp_mix),
KEEPFILTERS(mp_mix[mpId]),
KEEPFILTERS(mp_mix[riskProfile])
)
Proud to be a Super User! |
|
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |