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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I'm building a Custom Data Connector for Power BI, and I want to have two selectors and one to be affected for the first selection, like Select Country and then City.
Right now I have a restul service that when I send a country it returns all the cities from that country, How can I achieve calling the service with an on change or some event of the selector.
Here is my code where I Create the selectors:
//Set AllowedValues on each parameter
AddAllowedValues =
let
AvailableCountries = getDataFromUrl,
AvailableCities = {},
CountryParamType = type text
meta [Documentation.AllowedValues = AvailableCountries],
CityParamType = type text
meta [Documentation.AllowedValues = AvailableCities],
NewFunctionType = type function (
Select as CountryParamType,
Select2 as CityParamType2)
as table,
CastToType = Value.ReplaceType(BaseFunction, NewFunctionType)
in
CastToType
in
AddAllowedValues;
I hope you can help me
Regards
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |