Forum Discussion
ravitejaballa
6 years agoHelper III
Count by Catagory
Hi, I trying to get number of DeviceID for a each catagory (binLegendColumn). But it has to be for latest value for a given timestamp. As you can see below, i am able to fetch latest hours valu...
- 6 years ago
ravitejaballa
6 years agoHelper III
You are awesome!!
your measure worked for me.
Did small change to get latest available value in given time range.
TestMeasure =
COUNTROWS (
FILTER (
ADDCOLUMNS (
VALUES ( deviceHours[DeviceID] ),
"ABCD", CALCULATE (
[LatestHours],
CALCULATETABLE ( VALUES ( deviceHours[DeviceID] ) ),
ALLSELECTED ()
)
),
COUNTROWS (
FILTER (
binMater,
[ABCD] >= binMater[Lower bin legend]
&& [ABCD] <= binMater[Upper bin legend]
)
) > 0
)
)
Ashish_Mathur
6 years agoSuper User
You are welcome.