Power BI Retires R and Python Visuals in May 2027. Move the Math Before the Chart.

On November 9, 2026, Microsoft updated its Power BI documentation with a date. R and Python visuals, including the R-powered custom visuals people install from AppSource, will be retired in May 2027. After that, they stop working in the Power BI service, "including reports published before retirement."

Microsoft is plain about the fix, too. No migration inside a report recreates an R or Python visual. Each one has to be replaced with a different visualization before the date.

The obvious plan is a rebuild list. Find every affected visual, open a ticket for each, swap in the nearest built-in chart and close the tickets before May. Microsoft's own guidance is written visual by visual, so the plan even looks like compliance.

I'd run it in the opposite order.

A script visual can do math before it draws. Power BI builds a data frame from the fields on the visual and hands it to the script. The script runs, and what comes back to the canvas is a picture. Anything the script calculated on the way (a trend line, a forecast, a significance test) lives in that code and nowhere else. It isn't in the semantic model. It isn't in a table. Nobody can click into the result either, because Microsoft's documentation says the output is a static image with no tooltips and no cross-filtering.

So a chart-for-chart swap answers the wrong question. If the replacement is a built-in visual, the calculation still has to land somewhere. Unless someone decides otherwise, the easy place is a new DAX measure written by whoever picked up the ticket. If the replacement is a Fabric notebook, which Microsoft lists as an option, the same script moves to a new container with the same review it had before, which may be none. Either way, the logic gets lifted and shifted. A vendor deadline is when lift-and-shift is most tempting, because the date is fixed and the work looks mechanical.

The force underneath this is organizational. Analysis logic settles wherever it's easiest to write. For an analyst who needed a statistic the model didn't have, a script on the canvas was the shortest path. Look at where Microsoft drew the retirement line, though. Python scripts in Power Query that populate tables "aren't affected." Scripts that feed the model survive. Scripts that only draw get switched off. That's close to the line I'd draw in a governed BI estate anyway, and Microsoft has now put a date on it.

Three moves for the executives who own these reports:

1. Ask for the count before anyone rebuilds anything. Microsoft's page gives one way to search at scale. If reports are saved in Power BI Project format in Git-integrated workspaces, the team can search the report definitions for two visual types. Even that search misses R-powered custom visuals, which have to be checked report by report. If your team can't run it at all, you've learned something bigger than this retirement: there's no report inventory you can query, and the next vendor date will cost the same manual sweep.

2. Sort each affected report before it's assigned. There are three outcomes. The calculation moves into the semantic model, or into a scheduled notebook that writes a table the model reads, and someone with authority over the definition signs off. The report retires because nobody opens it. Or the chart gets redrawn, which should be the smallest pile. Rebuilding the chart comes last because it's the cheapest step. The sign-off is the one step the build team can't do for itself. My team only called a measure certified once the enterprise owner of its definition signed off on it as the official one. A measure could be built, tested and correct against its ticket and still not be certified.

3. Treat May 2027 as a trust date. A chart that goes blank in the middle of a monthly operating review is a small technical event and a large credibility one. To the executive in that meeting, a broken report reads the same as bad data. Microsoft's page tells teams to let people know which reports are affected. Do it early, with the replacement date attached, so the business hears it from the data team first.

You can't govern a number that only exists as pixels. Put the math where someone can check it, then draw whatever chart you like.

If you found this briefing valuable, share it with a colleague in data and analytics.

Next
Next

ExxonMobil’s $16.9 Billion in Savings Comes With a Rule for Taking Them Back