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 need help to fix a measure I created, I need my measure to consider only the middle column values that are not null or blank:
And my measure is this way today:
(IndicatorValue [Value]), Indicator [Name] = "IndicatorValue [Value]", IndicatorValue [Value], IndicatorValue [Value] Unidades_Rejeitos ")))
The value being presented is 1,053.00 being it should be only 551, how can I solve this?
Solved! Go to Solution.
Hi @Anonymous,
Please add a MAX() function for the Equipment [name],
Total of Units Rejected test = CALCULATE (sum (IndicatorValue [Value]); FILTER (Indicator; Indicator [Name] = "UnitsRejected" && not (isblank (MAX(Equipment [name])))))
Best Regards,
Qiuyun Yu
@Anonymous you could try this
measure = calculate(IndicatorValue [Value], Filter(IndicatorValue,
IndicatorValue [Description1] = "Unidades_Rejeitos "
&& not(isblank(description2))))
you will have to rework this slightly
Proud to be a Super User!
I adapted your suggestion and tried it in two ways:
Follow:
Total of Units Rejected test = CALCULATE (sum (IndicatorValue [Value]); FILTER (Indicator; Indicator [Name] = "UnitsRejected" && not (isblank (Equipment)))
Error: "The expression references multiple columns. Multiple columns can not be converted to a scalar value."
and
Total of Units Rejected test = CALCULATE (sum (IndicatorValue [Value]); FILTER (Indicator; Indicator [Name] = "UnitsRejected" && not (isblank (Equipment [name]))))
Error: Unable to determine a unique value for the 'name' column in the 'Equipment' table. This can happen when a measurement formula refers to a column that contains many values, without specifying an aggregation such as min, max, cont, or sound to get a single result.
@Anonymous Do you have a relationship between these tables equipment and indicator?
Proud to be a Super User!
Hi @Anonymous,
Please add a MAX() function for the Equipment [name],
Total of Units Rejected test = CALCULATE (sum (IndicatorValue [Value]); FILTER (Indicator; Indicator [Name] = "UnitsRejected" && not (isblank (MAX(Equipment [name])))))
Best Regards,
Qiuyun Yu
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 | |
78 | |
59 | |
36 | |
33 |
User | Count |
---|---|
94 | |
61 | |
56 | |
49 | |
41 |