Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello
I'm trying to have conditionnal Color formating on a simple numeric Field (here underneath CodeProjectID) but the menu panel always propose to have condition on the number of CodeProjectID not the value of CodeProjectID. What am I doing wrong?
Solved! Go to Solution.
Use MAX for this. MAX will return the max value, but both MIN and MAX have a unique characteristic where they will convert a field to a scalar value if there is only one value in your field.
So MAX(Table[CodeProjectID]) will work
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingBecause the value field you are using is not a number, but a field, so it has however many records are in your table. It needs to do Count, First, Max, or something to get to a single, also called scalar, value.
That is why a measure will work as is, a measure always returns a scalar value.
What Power BI is doing is actually creating an implicit measure, like COUNT(Table[YourField]) or MAX, or FIRST, or whatever.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting
Thanks.
IS there anyway to compute a measure for instance from this field to be able to condition on the value itself? For instance New Measure TEST = 0+ CodeProjectID (I tried it does not work).
Use MAX for this. MAX will return the max value, but both MIN and MAX have a unique characteristic where they will convert a field to a scalar value if there is only one value in your field.
So MAX(Table[CodeProjectID]) will work
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI Reporting
Thanks a lot, it's working!
Great! Glad my solution helped.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThis 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 |
---|---|
76 | |
75 | |
53 | |
37 | |
32 |
User | Count |
---|---|
99 | |
56 | |
50 | |
43 | |
40 |