Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I have this measure
Delta Movimento =
VAR DefaultDate = DATE(1900, 1, 1)
VAR ConfDate = SELECTEDVALUE(DimPurchaseOrder[ConfirmedShippingDate], DefaultDate)
VAR MovDate = SELECTEDVALUE(FactWmsInventory[MovementDate])
VAR ReqDate = SELECTEDVALUE(DimPurchaseOrder[RequestedShippingDate])
RETURN
SWITCH(
TRUE(),
ConfDate = DefaultDate, DATEDIFF(MovDate, ReqDate, DAY),
DATEDIFF(MovDate, ConfDate, DAY)
)
I use it in a table with 15 field from different tables, I can not modify the data model (as in add calculated columns) so i need to use a measure but this one takes minutes. How can I improve this?
Solved! Go to Solution.
Use DAX Studio to analyze the query plan and server timings. Verify and adjust your data model and your measure accordingly.
DO NOT use 1/1/1900 as a default date. Do not use default dates. Leave the value blank.
Use DAX Studio to analyze the query plan and server timings. Verify and adjust your data model and your measure accordingly.
DO NOT use 1/1/1900 as a default date. Do not use default dates. Leave the value blank.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
User | Count |
---|---|
90 | |
89 | |
79 | |
70 | |
68 |
User | Count |
---|---|
226 | |
129 | |
119 | |
84 | |
77 |