Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have this measure:
The issue I am having is how to perform calculations on the measure.
For example, I want a sum of all values < 11 but sumx does not work with boolean values.
Solved! Go to Solution.
@Qotsa try:
Less than 11 =
SUMX(
FILTER(
SUMMARIZE(
'powerbi114 view_finance',
'powerbi114 view_finance'[carer_id],
'powerbi114 view_finance'[Date]
)
[Daily Rest Decimal Hrs] < 11
)
,1
)
Thks again. Can you explain what is happening here?
SUMX(
FILTER(
SUMMARIZE(
'powerbi114 view_finance',
'powerbi114 view_finance'[carer_id],
'powerbi114 view_finance'[Date]
)
SUMMARIZE(
'powerbi114 view_finance',
'powerbi114 view_finance'[carer_id],
'powerbi114 view_finance'[Date]
)This is the distinct combination of these 2 columns.
Check out:
https://dax.guide/summarizea
Ok. Thanks very much.
@Qotsa my pleasure 🙂
Don't forget to check out my showcase report - really, got some high level stuff there. Sure you will find there a lot of cool ideas.
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up over there if you liked it 🙂
@Qotsa I think you are trying to do:
Less than 11 = SUMX(FILTER('powerbi114 view_finance',[Daily Rest Decimal Hrs] < 11),[Daily Rest Decimal Hrs])
@Qotsa oh, so do this:) :
Less than 11 = SUMX(FILTER('powerbi114 view_finance',[Daily Rest Decimal Hrs] < 11),1)
It's getting closer.
@Qotsa try:
Less than 11 =
SUMX(
FILTER(
SUMMARIZE(
'powerbi114 view_finance',
'powerbi114 view_finance'[carer_id],
'powerbi114 view_finance'[Date]
)
[Daily Rest Decimal Hrs] < 11
)
,1
)
That's fantastic. I'm getting the correct results for <11.
When I change it tho to =, it doesn't return the desired result. Any idea why?
@Qotsa I guess it's not exactly 32.26 🙂
Try to verify by doing
Less than 11 =
SUMX(
FILTER(
SUMMARIZE(
'powerbi114 view_finance',
'powerbi114 view_finance'[carer_id],
'powerbi114 view_finance'[Date]
)
[Daily Rest Decimal Hrs] > 32 && [Daily Rest Decimal Hrs] < 33
)
,1
)
Yep, that gives correct result.
@Qotsa my pleasure 🙂
Please don't forget to accept the previous message as a solution for community visibility.
P.S. Check out my showcase report - got some high level stuff there. Sure you will find there a lot of cool ideas.
https://community.powerbi.com/t5/Data-Stories-Gallery/SpartaBI-Feat-Contoso-100K/td-p/2449543
Give it a thumbs up over there if you liked it 🙂
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |