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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
trevorw1329
Regular Visitor

Inconsistent Calculation from selectedvalue function

I am using a selectedvalue formula that takes lat and longitude values and plugs them into my calculation. I created fields to ensure the function called the correct values and it did. However, when my other calculated field uses these values which should be the same it doesn't respond. If I plug in the numbers themselves, instead of using the selectedvalue function, it works properly so I know it shouldn't be the calculation itself that's the issue. But my other fields show that the selectedvalue formula should be returning the correct values. As shown below, the bottom right chart is not responding properly.Screenshot 2022-08-04 134808.pngScreenshot 2022-08-04 140131.pngThis is what the bottom right chart looks like with the variables manually set which is what I want

.Screenshot 2022-08-04 143329.png

2 REPLIES 2
trevorw1329
Regular Visitor

Update: when I show the chart as a table, it seems to be working correctly, so why is the chart not working?Screenshot 2022-08-04 144209.png

Anonymous
Not applicable

HI @trevorw1329,

In fact, selectedvalue function does not suitable to handle aggregate row contexts. You can add 'alternate result' option to handle these aggregate multiple rows.

In addition, what type of calculated field are you work? If you mean calculated column, current power bi does not support creating dynamic calculated column/table based on filter selections. They work on different levels and I'd like to suggest you use measure expression instead.

Notice: the data level of power bi(from parent to child level) 

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer) 

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.