Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have de next calculated table.
That table is generated with the next measure.
The "Mode" column was not grouped by "master_product_id" and by "related year_week"
I thought use GROUPBY but it seems that it is not compatible with MEDIANX
I would like to know if there is a way to do this.
Solved! Go to Solution.
@Yeztrom , This will take complete column, Try like
If needed use add columns to add the below column
VAR _VW_Prices_Mode_Clear =
SUMMARIZE(
_VW_Prices_Mode,
[master_product_id],
[related year_week],
"price",[product_current_price]
)
New column = MEDIANX(filter(Table, [master_product_id] = earlier([master_product_id]) && [related year_week] = earlier([related year_week]) ), [Price])
or
New column = MEDIANX(filter(Table, [related year_week] = earlier([related year_week]) ), [Price])
@Yeztrom , This will take complete column, Try like
If needed use add columns to add the below column
VAR _VW_Prices_Mode_Clear =
SUMMARIZE(
_VW_Prices_Mode,
[master_product_id],
[related year_week],
"price",[product_current_price]
)
New column = MEDIANX(filter(Table, [master_product_id] = earlier([master_product_id]) && [related year_week] = earlier([related year_week]) ), [Price])
or
New column = MEDIANX(filter(Table, [related year_week] = earlier([related year_week]) ), [Price])
Thanks,
The solution was:
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.