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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
How do i acheive below condition in DAX measure.
BusDay is from one table and remaining dates come from different table.In between these two tables there is one active relationship between order date and busday and remainig two values are inactive relationships with Busday.
Thanks,
Prathy
Solved! Go to Solution.
Try
@pmadam ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
You can actually make it work like
New Measure =
countx(summarize(filter(table,table[order_date]<=max(Table2[Bus Day]) && Table[start date]<=max(Table2[Bus Day])
&& Table[end date]>=max(Table2[Bus Day])), Table[Order-Line]),[Order-Line])
As we need an aggregated column from another table in the measure we can use related /min /max depend on the relation.
Order -line is force the row context of like , there can be more group bys
Try
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!