Fun Things you can set in TMDL!
I made this video on some fun things that you can control if you use: TMDL Mastery: Accessing Power BI's Hidden Developer Settings
In case you want to completely skip over the video here is the summary of what was covered :
---------
WARNING: some of these are likely not officially supported as they are generated by PBI internally and so as a result could change at any time
---------
Custom Power Query Query Sort Order
annotation PBI_QueryOrder = ["Fact Table","Dim Date","Table"]
Analyze in Excel Drill thru for a measure (good SQL BI Article on this: https://www.sqlbi.com/articles/controlling-drillthrough-in-excel-pivottables-connected-to-power-bi-or-analysis-services/)
detailRowsDefinition =
SELECTCOLUMNS(
'Fact Table',
"Order Date", 'Fact Table'[OrderDate],
"Customer", 'Fact Table'[CustomerName],
"Amount", 'Fact Table'[order_val]
)
Date Column Join Behavior
joinOnDateBehavior
Custom Annotations
Enabling or disabling Time Intelligence
annotation __PBI_TimeIntelligenceEnabled = 1
Discouraging Implicit Measures
discourageImplicitMeasures: true