Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hey All,
I am trying to build a report for water quality reporting.
Context:
I have several parameters that are evaluated using a measure that is just ParameterName = AVERAGE(Parameter[ParameterName]).
These measures serve as the column headers in a table. The rows are formed using a calculation group calculating that measure over different weeks in that month, the maximum weekly average, if the parameter is ph of Dissolved Oxygen, report the Min or Max value recorded, etc.
Problem:
Certain Calculation Items are not returning values when using SELECTEDVALUE(). This is a problem because i am attempting to conditionally format based on the Calculation Item.
Here a simple version of the table i am using to troubleshoot:
The measure for the SelectedValue column is
This returns nothing? blank? empty? not sure...
However this calc item returns the name.
Am i missing something?
I am experiencing this issue as well. Even when I try SELECTEDVALUE('Calculation group'[Ordinal]), it does not give the ordinal.
What I did to solve it was: create a new table which summarizes the calculation group table. Create a relationship between the calculation group table and the new table. And use the new table columns in measurs for conditional formatting.
Hello @tp365,
Can you please try this approach:
MAX Weekly Avg =
IF(
OR(
CONTAINSSTRING(SELECTEDMEASURENAME(), "Eff pH"),
CONTAINSSTRING(SELECTEDMEASURENAME(), "Eff DO")
),
BLANK(),
MAXX(
ADDCOLUMNS(
VALUES('Calendar'[DMR Week]),
"WeeklyValue", CALCULATE(SELECTEDMEASURE())
),
[WeeklyValue]
)
)
Thanks for the reply @Sahir_Maharaj.
The suggested Calculation Item does give the appropriate maximum weekly average, however the SelectedValue is still blank.
Oddly enough, the ordinal will populate, but when used in a conditional format, it doesn't register at all, even under the "else" condition.
Here is the Measure i am applying as conditional formatting using field values for the column represented here:
It does not recognize if i use SelectedValues(DMR[Calculation]) or SelectedValues(DMR[Ordinal]) for [MAX Weekly Avg] even though the ordinal actually populates.
@tp365 were you ever able to resolve this issue? I think this behavior is currently impeding my attempts to implement conditional formating for my calculation groups as well.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 10 | |
| 7 | |
| 6 |