I'd like to be able to create reusable functions in DAX, instead of using the same DAX code in multiple measures. Example: I have some complicated DAX code, which calculates the no of working seconds between two date-times. This excludes holidays, weekends, and only counts seconds from the start of the work-day, to the end of the work-day. I use this DAX code a lot, for many measures which need to be in "Working Time" (working hours/minutes). I would love to not have to copy-paste a bunch of code into all of my measures, but to be able to create a reusable function instead.
64 Comments
- jacob_walkerNew MemberIt seems a no-brainer to have this capability, and is so weird that it appears that it doesn't (I've been trying to find a way of doing it for a bit now!). If DAX could have UDFs, it would be possible to start to build a library of data analysis functions that could rival R for data science applications. But without this expandability, it is not in as competitive of a position.
- schanulekeAdvocate IYes, we absolutely need this.
- amanlamNew MemberUDF is a basic concept of any programming language
- tmckenzie3New MemberCompletely agree. This would save so much development effort!!!
- jekygNew MemberAgree ! basic and super powerful. PBI TEAM - pls. add this
- neil_macmullen1New MemberSomewhat flabbergasted that this doesn't appear to be supported.
- rahulpawar1212New MemberYes that is required
- fbcideas_migusrNew MemberCode reuse is basic
- b2218281New MemberCopy-paste waste my time and it's hard to maintain a bunch of duplicate dax code.
- roy_wellsNew MemberYes to this. Huge issue on large models with many similar complex measures
Recent ideas
Allow External OneLake Data Shares to Be Accepted into Multiple Fabric Item Types
Fabric External Data Sharing provides an excellent zero-copy mechanism for sharing OneLake data across tenants. However, the receiving tenant currently has to accept the share into a Lakehouse. I w...Mourak20 minutes agoNew MemberNew1View0likes0CommentsAllow OneLake Shortcut Authentication Mode to Be Changed In Place
OneLake shortcuts support passthrough and delegated authentication, but changing the authentication model currently requires deleting and recreating the shortcut. I would like shortcut authenticatio...Mourak21 minutes agoNew MemberNew2Views0likes0CommentsTenant-Wide OneLake Shortcut Lineage and Impact Analysis
This is grounded in a documented limitation: shortcut lineage is currently workspace-scoped, and Microsoft specifically says lineage for shortcuts to warehouses and semantic models isn't currently av...Mourak24 minutes agoNew MemberNew2Views0likes1CommentAdd an End-to-End Production Reference Architecture for Microsoft Fabric Real-Time Intelligence
I would like to see a complete end-to-end Microsoft Fabric Real-Time Intelligence reference architecture that demonstrates how the individual RTI capabilities work together in a production-oriented s...Mourak33 minutes agoNew MemberNew1View0likes0CommentsImprove CI/CD consistency for Microsoft Fabric Real-Time Intelligence Eventstreams
Microsoft Fabric Real-Time Intelligence has made strong progress with Git integration and deployment pipelines, but lifecycle management can still be inconsistent across Eventstream sources, destinat...Mourak34 minutes agoNew MemberNew1View0likes0Comments