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.
Table without restirictions has two dimensions Color and Number. Value cells has values from a measure (we can call it CellSum) that sums up values with these dimensions. I want to exclude all values below 4 from counted totals, but want to see these values in the matrix. See example. How can we achive this with dax code?
Table without restrictions:
Desired table (red lines just to show which values we want to exclude from totals):
Solved! Go to Solution.
Hi @irukandjix
I would suggest a measure along these lines (replace table/column references as needed):
CellSum Modified =
VAR Threshold = 4
RETURN
IF (
AND ( ISINSCOPE ( Number[Number] ), ISINSCOPE ( Color[Color] ) ),
[CellSum],
SUMX (
SUMMARIZE ( YourTable, Color[Color], Number[Number] ),
VAR CellSum = [CellSum] RETURN IF ( CellSum >= Threshold, CellSum )
)
)
ISINSCOPE is used to detect whether you are in an individual Color/Number cell.
Does something like this work for you?
Regards
Very nice solution, thank you @OwenAuger ! Your magic does exactly what is wanted!
Hi @irukandjix
I would suggest a measure along these lines (replace table/column references as needed):
CellSum Modified =
VAR Threshold = 4
RETURN
IF (
AND ( ISINSCOPE ( Number[Number] ), ISINSCOPE ( Color[Color] ) ),
[CellSum],
SUMX (
SUMMARIZE ( YourTable, Color[Color], Number[Number] ),
VAR CellSum = [CellSum] RETURN IF ( CellSum >= Threshold, CellSum )
)
)
ISINSCOPE is used to detect whether you are in an individual Color/Number cell.
Does something like this work for you?
Regards
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |