Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

AllSelected and Field Parameters Conditional Highlighting



Im hoping to get some assistance with a Measure im using to highlight the largest and smallest columns in a  visual.


I am running into the follwing issue:



I imagine this is largely due to the use of field Parameters to group my Dates,weeks, quarters and years data. Is there a simple solution I can apply to my measure?


Ideally returning the following:




Super User
Super User

@nautilusben , Your minx and maxx need to change like


calculate( minx(values(Date[Date]), [Measure]), allselected(Date[Date]))




calculate( minx(values(Date[Date]), [Measure]), allselected(Date[Date]))


If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Hi @amitchandak,


Thanks for your reply,


unfortuantely I am still having difficulty with making this work. I wasnt able to attached the document in this forum space, but have provided a dropbox link below:

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors