Forum Discussion
Clint
Helper V
7 years agoBoolean calculations and filters
Hello,
I'm trying to write a measure to sum the max possible score for a set of entries in the table based on a SNo of 25 thru 59. The following measure looks like it should do this from a logical stand point but I get the following error when applying it to a card visual. MaxiumScore is a field type of whole number as is SNo.
M_FC Max Score = CALCULATE(Sum(QPlanCurrent[MaximumScore]),'Qplancurrent'[Sno]>=25<=59)
- Anonymous7 years ago
Just noticed, what if you try this:
M_FC Max Score = CALCULATE( SUM ( QPlanCurrent[MaximumScore] ), AND( 'Qplancurrent'[Sno]>=25, 'Qplancurrent'[Sno]<=59) )
4 Replies
- AnonymousNot applicable
Be sure to check the those columns, the Max score and the Sno. I'd load them into Power Query, explicitly set the data types and see if there are any errors. Usually things like this happen when there one or just a few rows where a text field, blank, or some thing weird got in there.
- Clint
Helper V
Hey Nick,
There are errors in the columns for sure but this measure does work
M_Rel Start Max Score = CALCULATE(Sum(QPlanCurrent[MaximumScore]),'Qplancurrent'[Sno]<=24)- AnonymousNot applicable
Just noticed, what if you try this:
M_FC Max Score = CALCULATE( SUM ( QPlanCurrent[MaximumScore] ), AND( 'Qplancurrent'[Sno]>=25, 'Qplancurrent'[Sno]<=59) )