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.
Can someone please tell me why the second variable is erroring:
var _max = maxx(filter(Table, [Product] =earlier([Product]) && [Date] <earlier([Date)),[Date]) var _exp = maxx(filter(Table, [Product] =earlier([Product]) && [Date] =_max),[Expiry Date])
return
Switch ( true(),
isblank([Expiry Date]) , "No Expiry Date",
[Expiry Date] =_exp , "No Change",
_exp>EOMONTH([Expiry Date],0),"> 1 month change",
_exp<EOMONTH([Expiry Date],0),"< 1 month change"
)
Solved! Go to Solution.
@obriaincian , I can see square bracket is missing in earlier of Date:
var _max = maxx(filter(Table, [Product] =earlier([Product]) && [Date] <earlier([Date])),[Date])
@obriaincian , I can see square bracket is missing in earlier of Date:
var _max = maxx(filter(Table, [Product] =earlier([Product]) && [Date] <earlier([Date])),[Date])
@obriaincian What error are you getting?
@obriaincian Refer my another reply regarding missing square bracket of earlier([Date]) in first var.
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 |
---|---|
88 | |
85 | |
68 | |
68 | |
64 |
User | Count |
---|---|
210 | |
118 | |
116 | |
81 | |
74 |