March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
Basic information:
In "Green" calculation we had the change and it means: All Product > TODAY
I have an issue with measure because the measure is counting values incorrectly. I would like the measure to also take into account the individual days of the month but for rest days of December it doesn't display values:
How to change the calculation in this measure?
This is pbix file with my calculations:
Could you help me, please?
Solved! Go to Solution.
I think your calculation does not consider "diff = 0" scenario. See if the below works:
Measure 2 =
var cur_yearly_review=SELECTEDVALUE('Table'[Yearly review])
var cur_date=TODAY()
var diff=DATEDIFF(cur_yearly_review,cur_date,MONTH)
-- return diff
return
SWITCH(TRUE(),
diff > 6, "More than 6 months",
diff >= 0, "Less than 6 months",
diff < 0, "All recertified")
I think your calculation does not consider "diff = 0" scenario. See if the below works:
Measure 2 =
var cur_yearly_review=SELECTEDVALUE('Table'[Yearly review])
var cur_date=TODAY()
var diff=DATEDIFF(cur_yearly_review,cur_date,MONTH)
-- return diff
return
SWITCH(TRUE(),
diff > 6, "More than 6 months",
diff >= 0, "Less than 6 months",
diff < 0, "All recertified")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
90 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |