Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Keep Min and Max on graph while changing selection

Hi,

 

I have a form with multiples questions and notes from 0 to 10 for each questions.

I made a graph with the min and max for each questions :

2019-12-03 15_10_37-ldb - Power BI Desktop.png

 

The interviews have been made for several brands. I would like to keep the min and max on the graph while I change the selected brand.

Any IDEA ?

1 ACCEPTED SOLUTION

Try

Min_Brand = CALCULATE(MINX(results,results[Moyenne]),ALL(results[Brand]))

 

Please note as you have other measures in graph, which will still filter and keep on moving question position. You might see min moving. The best way to test is only to have this measure on the graph.

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

Not sure I got but, All, all except are few option to explore

QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),all(brand),DATESMTD(dateadd('Date'[Date],-1,QUARTER)))

 

In above brand filter will be ignored

 

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi,

 

Thank you for you answers. Here are the PBIX and the Excel file I have been working on to be more precise.

Test_Brand.pbix 

Test_Brand.xlsx 

As you can see, when I select a brand, the min and max disappear.

I have tried the ALL function but it does not seem to work with MINX :

Min_Brand = CALCULATE(MINX(results;results[Moyenne];ALL(results[Brand])))
 
2019-12-04 11_06_01-Sans titre - Power BI Desktop.png

 

Try

Min_Brand = CALCULATE(MINX(results,results[Moyenne]),ALL(results[Brand]))

 

Please note as you have other measures in graph, which will still filter and keep on moving question position. You might see min moving. The best way to test is only to have this measure on the graph.

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.

My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks Amit. Works great ! 👍

parry2k
Super User
Super User

@Anonymous how does your data looks like? What measure you are using for min and max? Basicall in your measure you need to ignore Band filter which can be achieved by using ALL  function.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.