Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Friends, I try to call one function in to the other kind of nested.
M-Code:
let
ADD = (x as any) => let s2 = x+1
in
s2,
SUB = let s33 = ADD -1
in
s33
in
SUB
ERROR:
Thanks in advance
@Greg_Deckler @Anonymous Many thanks both of you. The below code is working fine to me
let
ADD = (x as any) => let s2 = x+4
in
s2,
SUB =(x as any) => let s33 = ADD(x) -3
in
s33
in
SUB
@msksenthil I would still do it as 2 functions:
let
ADD = (x as any) => let s2 = x+1
in
s2
in
ADD
let
SUB = (x as any) => let s33 = ADD(x)-1
in
s33
in
SUB
You need to complete your ADD function. After you have in s2 , you have to write in ADD. right now, ADD is unevaluated function -1.
@msksenthil Perhaps I'm mistaken but don't you want 2 separate functions:
let
ADD = (x as any) => let s2 = x+1
in
s2
in
ADD
let
SUB = (x as any) => let s33 = x+1
in
s33
in
SUB
Nope, I try to use the result of the previous 'let' in the following 'let'
Instead of "in s2", try "in s2 in ADD".
--Nate
Sorry, I didn't get you
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 7 | |
| 6 | |
| 6 |