Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 🙂
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
62 | |
61 | |
49 | |
45 |