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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Personalize Visual Scatter chart - dynamic fixed axes scale per measure

Hello,

Is there a way to dynamically change the min and max values of X/Y axis scale values, to a fixed predefined value based on certain conditions, in Scatter Plot when a different measure is selected using Personalize Visual option? I tried using Calculation Group Measure using IF and ISSELECTEDMEASURE() combination and tying the mesaure to scatter plot x/y axis scale properties, but it does not seem to work as expected. Any help would be greatly appreciated.

Thanks

Nirmit

3 REPLIES 3
Anonymous
Not applicable

An update for benefit of others reading - SELECTEDMEASURENAME is special function which works only when used within Calculation Item. Since I was using it in a regular Calculated Measure, it of course had no effect. 
Havig said that, it still does not resolve the issue since Calculation Items cannot be tied to axis Scale property. Thus the question in the conext of Personalize Visual setting still remains.

Anonymous
Not applicable

Hi @Anonymous 

Have you tried with a SWITCH and SELECTEDMEASURENAME()

In case it still doesn't work, can you share an example or some more details?

Thanks!

Anonymous
Not applicable

Hi @Anonymous,

Thanks for quick reply. Yes I have tried with that too, but to no luck. Sharing below the code and results. Have demonstrated it in a Line chart for now for quick sketch but I assume measure behavior will be same for Scatter chart too.

 

dynamic axis scale = 
SWITCH(
    SELECTEDMEASURENAME(),
    "Net Sales", 3000000,
    "Volume", 1000000,
    999
    )

 

Results: dynamic axis scale returning default value 999 and thus no value in graphs. Expected results are as shown in right side graph. Notably there are 2 slicers also in the bottom which are controlling the Sales and Volume measure values. But again this should not intervene with "dynamic axis scale" mesaure calculation.

nirmit27_0-1644825597953.png

Thanks

Nirmit

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors