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 guys
1. I have created a measure which changes upon selecting a city name in slicer.
From the above table I am trying to get the date of the row where value in plan_revenue matches
with the the selected value from the city_name.
My expected output is the date where plan_revenue value = value from measure max_rev_month
Hi @Arunsaikiran ,
You can try this:
max_rev_month = CALCULATE(MAX(revenue[plan_revenue]),FILTER(ALL(dim_cities),dim_cities[city_name]=[city_filt]))
max_month =
CALCULATE(min(plan_revenue[date]),
FILTER(ALL(plan_revenue),
plan_revenue[plan_revenue] = [max_rev_month]),
FILTER(ALL(fact_plan_revenue),
plan_revenue[city_code] = [city_filt]
))
If that's not what you need, provide sample files and expected output.
Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
would be good to provide some sample data.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |