Forum Discussion
anin
5 years agoFrequent Visitor
Count specific values based on latest date
Hello, I would like to count data entries with a specific value based on latest selected less than or equal date and have created a date table with a separate slider in my report. This is my ...
amitchandak
5 years agoSuper User
anin ,
Try a measure like. I have not tested this
measure =
Var _1 = calculateTable(all(Table), Table[Date] <=selectedvalue(Table[Date]))
return
counrows(distinct(union(all(_1[value1]), all(_1[value2]))))
- anin5 years agoFrequent Visitor
amitchandak Thank you, but I am having trouble getting your measure to work - For the record I am not interested in counting rows where value1 and value2 are identical, but where they have the exact value 2
Here is my pbix file
- Anonymous5 years agoNot applicable
Hianin,
The sample you provided cannot be opened, please share it again, sorry for the inconvenience.
Best Regards,
Caitlyn YanIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.