Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
loginerror
Frequent Visitor

How to only run my custom translation function once per value to save quota

Hopefully I can explain it nicely 🙂

 

I have a custom translation function that uses an API call to the Azure Translator service. The service allows one to translate up to 2 mln charactesrs for free per month.

 

The issue I run into is caused by the Power BI auto-refresh of the data set. It eats my quota pretty fast (my source column is a bit short of 1mln characters).

 

As such, is there a way to tell Power BI to only run my function once for each value and then stop forever (for that value)?

Ideally, I would want it to only apply to one specific data source (I already referenced the values I want to translate in a separate Query that is linked to the source data)

2 REPLIES 2
ToddChitt
Super User
Super User

If you want your refresh schedule to be different than that of other queries in your model, then use a Dataflow in your Workspace. However, I can't gaurantee that Dataflows are up to handling the call to your Translation Service. But if it does, then you can schedule it as needed, or not at all. Then in your Power BI Desktop model, you can include the Entity from the Dataflow.

 

Hope this helps.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Greg_Deckler
Super User
Super User

@ImkeF 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors