Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
45 | |
26 | |
22 | |
12 | |
7 |
User | Count |
---|---|
73 | |
51 | |
45 | |
16 | |
12 |