Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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")
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |