Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Solved! Go to Solution.
try like
Measure =
var _Date =
DATE(
YEAR(TODAY())-1,
MONTH(TODAY()),
DAY(TODAY())
)
+
TIME(
HOUR(NOW()),
MINUTE(NOW()),
SECOND(NOW())
)
+
dayInc
RETURN
CALCULATE(
COUNT(customer[ID]),
dateTable[Date] >= _Date
)
OK, it doesn't look like you even have three parameters for your first DATE function. The second parameter looks to be a return from a DATE function. This is all bad.
CALCULATE(
COUNT(customer[ID]),
DATE(
YEAR(TODAY())-1,
DATE(
YEAR(TODAY())-1,
MONTH(TODAY()),
DAY(TODAY())
)
+
TIME(
HOUR(NOW()),
MINUTE(NOW()),
SECOND(NOW())
)
+
dayInc
)
)
When i useed your dax that give error message one "day" parameter is missing.
I need use this date like this
CALCULATE(
COUNT(customer[ID]),
DATE(
YEAR(TODAY())-1,
MONTH(TODAY()),
DAY(TODAY())
)
+
TIME(
HOUR(NOW()),
MINUTE(NOW()),
SECOND(NOW())
)
+
dayInc
)
but this give this error message.
"The True/False expression does not specify a column. Each True/False expressions used as a table filter expression must refer to exactly one column."
@az38
Yes try fillter function but thi not work give over count.
when i use this Dax this work good with Date but not with time. I just need help work with time
try like
Measure =
var _Date =
DATE(
YEAR(TODAY())-1,
MONTH(TODAY()),
DAY(TODAY())
)
+
TIME(
HOUR(NOW()),
MINUTE(NOW()),
SECOND(NOW())
)
+
dayInc
RETURN
CALCULATE(
COUNT(customer[ID]),
dateTable[Date] >= _Date
)
I want this to be count.
For Exmaple: Today Date and Time will be: 09-05-2020 17:25 ---- I want count of last year till same time : 11 -05-2029 till 17:25.
That measure i am using it work with date level but not with time. so can you plz help on this
@az38 Thanks it work when i use like this way
so, now its ok?
if so, please, mark appropriated solution to close the topic
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.