Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi there,
I have this measure below that gives me a count in a row context that I need. But I am unable to put it in a card as a value. WHat am i doing wrong, please can someone help me with how to tweak the measure?
var _max0 = maxx(filter(allselected(Table), Table[Emp_id] = max(Table[Emp_id]) && Table[Interval] =0),Table[Effective_Date])
var _max5 = maxx(filter(allselected(Table), Table[Emp_id] = max(Table[Emp_id]) && Table[Interval] =5),Table[Effective_Date])
return
calculate(distinctcount(table[emp_ID]), filter(Table, Table[Interval] =5 && _max5>_max0))
Expected Results:
a sorecard value of 1
| ID | Emp_ID | Interval | Effective_Date | Score |
| 2 | 1001 | 0 | 8/26/2020 | 3.3 |
| 6 | 1002 | 0 | 1/1/2022 | 2.0 |
| 3 | 1001 | 3 | 11/20/2020 | 3.5 |
| 5 | 1001 | 5 | 2/1/2021 | 4.1 |
Solved! Go to Solution.
Hi,
You can achieve this with additional measure like this:
Proud to be a Super User!
Hi,
You can achieve this with additional measure like this:
Proud to be a Super User!
Thank you very much
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 30 | |
| 27 | |
| 17 | |
| 11 | |
| 10 |