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
:: operator for typecast in T-SQL
Introduce support for the ::type cast operator in Fabric Data Warehouse as syntactic sugar for the existing CAST(... AS type) expression. The new operator would be functionally equivalent and compile...jovanpop-msft7 hours agoMicrosoft EmployeeNew42Views7likes1CommentThis is a genuine feature request for Power BI Table and Matrix visuals.
Problem: Currently, Table and Matrix visuals do not have a built-in "Corner Radius" option in the General format settings. To create rounded corners, we have to use a Shape as a workaround behind th...SBK_MART7 hours agoNew MemberNew2Views0likes0CommentsAdd Corner Radius for Table and Matrix Visuals
Problem: Currently, Table and Matrix visuals do not have a built-in "Corner Radius" option in the General format settings. To create rounded corners, we have to use a Shape as a workaround behind th...SBK_MART8 hours agoNew MemberNew4Views0likes0CommentsPower BI reports with more than 50 report pages cannot be exported
Currently, you can only export those Power BI report where total report pages are less than or equal to 50. If a report has more than 50 pages and you try to export it (PDF/PPT) you get an error mess...ankushsharma19 hours agoNew MemberNeeds Votes5.5KViews331likes51CommentsAllow customization of email notifications for failed pipeline activities
Currently, Microsoft Fabric can automatically send an email notification when an activity or item in a pipeline fails. However, the content and structure of this email follow a fixed template. It w...SolutionsBryn11 hours agoNew MemberNew3Views1like0Comments