Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.