Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Thanks in advance! I have a query pulling taxonomies from the NPPES Npi lookup database through and invoked function. The issue is when I expand the column to display the specialty of the NPI referenced from my table, it results in an error (provider has been de-activated in the NPI registry) and stops the rest of the query from working. I would be fine if it continued to display rows with error or "deactivated", but it just stops altogether. Can anyone help me here?
let
Source = Access.Database(File.Contents("P:\aaaaaa\folderstructurefile.accdb"), [CreateNavigationProperties=true]),
#"ACCESSQUERY" = Source{[Schema="",Item="ACCESSQUERY"]}[Data],
#"Invoked Custom Function" = Table.AddColumn(#"ACCESSQUERY”, "SPECIALIST", each NPIFUN([TEXTNPI])),
#"Expanded SPECIALIST" = Table.ExpandTableColumn(#"Invoked Custom Function", "SPECIALIST", {"Value"}, {"SPECIALIST.Value"}),
Value = #"Expanded SPECIALIST"[Value]
in
Value
This is from advanced editor. I just want all records to show, whether or not there is information associated with it.
Also, here is the function
let
Source = (#"NPI LOOKUP" as text) => let
Source = try Json.Document(Web.Contents("https://npiregistry.cms.hhs.gov/api/?version=2.1&number=" & #"NPI LOOKUP"))otherwise null,
results = Source[results],
results1 = results{0},
taxonomies = results1[taxonomies],
taxonomies1 = taxonomies{0},
#"Converted to Table" = Record.ToTable(taxonomies1),
#"Filtered Rows" = Table.SelectRows(#"Converted to Table", each ([Name] = "desc")),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Name"})
in
#"Removed Columns"
in
Source
Solved! Go to Solution.
I re-read this again and replaced errors with null. It is working now. I had to do that before expanding the column.
Hi @black6spd ,
You said that you get error when invoke function, so, if possible, could you please inform me more detailed information? And whether there is tutorial document of your function?
Best Regards,
Zoe Zhi
I re-read this again and replaced errors with null. It is working now. I had to do that before expanding the column.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
14 | |
13 | |
9 | |
7 | |
6 |