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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a task to compare 2 dynamic periods from the table (MOO). The idea is to get clients which are in both dates and compare them by 1 field (Rating_rank).
I created calculated tables and one combined (could do with intersect but nm) and want to add value of Rating rank for client for date (in example - min date)
But my created field calculates max(rating_rank) from all table, not grouping by client. What should id do?
Example is created table to check the results.
rate_worse_tab = var min_dt = calculate(min('MOO'[value_day]),ALLSELECTED('MOO'[value_day])) var max_dt = calculate(max('MOO'[value_day]),ALLSELECTED('moo'[value_day])) var cur_cl = CALCULATETABLE(values(MOO[CLIENT_UK]),filter(MOO,MOO[VALUE_DAY]=max_dt)) var old_cl = CALCULATETABLE(values(MOO[CLIENT_UK]),filter(MOO,MOO[VALUE_DAY]=min_dt)) var combo_table = CALCULATETABLE(values(MOO[CLIENT_UK]),filter(MOO, MOO[CLIENT_UK] in cur_cl && MOO[CLIENT_UK] in old_cl)) var f_table = ADDCOLUMNS(combo_table,"Old_rate_rank",calculate(max(MOO[Rating_rank]),filter(MOO,MOO[VALUE_DAY]=min_dt && MOO[CLIENT_UK] in combo_table))) return f_table
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.