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.
Hi all,
i am using the following measure to caluclate the date of the most recent invoice generated
Solved! Go to Solution.
Hi @Anonymous ,
I guess it would be something like this:
_timeWindow =
VAR dDiff = DATEDIFF([yourMeasure], TODAY(), DAY)
RETURN
IF(
dDiff > 180,
"Invoice Due " & dDiff - 180 & " days ago",
180 - dDiff & " days until next invoice"
)
Pete
Proud to be a Datanaut!
Hi @Anonymous ,
I guess it would be something like this:
_timeWindow =
VAR dDiff = DATEDIFF([yourMeasure], TODAY(), DAY)
RETURN
IF(
dDiff > 180,
"Invoice Due " & dDiff - 180 & " days ago",
180 - dDiff & " days until next invoice"
)
Pete
Proud to be a Datanaut!
@Anonymous , You can create a new measure like
datediff([Last Raised Invoice], today(), day)
or
if(datediff([Last Raised Invoice], today(), day) > 180, "Invoice Due 180 days ago" , "Invoice Due below 180 days ago")
unfortunately i do not seem to be able to reference the 1st measure to create this new measure
the above works in a calculated column
may be this is what i need to do
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
87 | |
79 | |
62 | |
61 | |
60 |
User | Count |
---|---|
166 | |
114 | |
99 | |
73 | |
65 |