Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
So when I use this expression in a text sheet object it works fine, I get the value that is displayed and I have confirmed it works correctly.
But I started using it a lot so i decided to make a let expression for it. When i put it in a let statement the compiler gets angry and it has the red underline and says unknown error
//Morning INV
Let MorningINV= Sum({<DDGDayStart={'$(vToday)'}>}[DDG Inventory]);
They either give a blank text object or an expression error is displayed on the text object.
Try this
LET MorningINV = 'Sum({<DDGDayStart = {"$' & '(vToday)"}>}[DDG Inventory])';
Let MorningINV= ' Sum({<DDGDayStart={'$(vToday)'}>}[DDG Inventory]) ';
Maybe use ' ' ??
Whats the use of creating a variable in script when you can do it in front end, easier to modify too
Give this a short
LET MorningINV = 'Sum({<DDGDayStart = {"$' & '(vToday)"}>}[DDG Inventory])';
This worked!! Thank you!
Used the same logic from what was given by Stefan here