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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.This is what the bottom right chart looks like with the variables manually set which is what I want
.
Update: when I show the chart as a table, it seems to be working correctly, so why is the chart not working?
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 45 | |
| 44 | |
| 33 | |
| 32 | |
| 28 |
| User | Count |
|---|---|
| 134 | |
| 114 | |
| 58 | |
| 57 | |
| 57 |