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!View all the Fabric Data Days sessions on demand. View schedule
Hi,
My measure is very low, one single line takes 2 seconds to complete. How can this be optimized? I realize it may be a combination of the relationship model, dax query etc.
I thought I would try with 1) look for help to optimize the dax query itself if possible and 2) adjust the relationship model so that a many-many-relation is added with a bridge table. But not sure the performance gain this may give.
So, to the Dax query itself, it is filtering a big table based on the user's min and max selections, to return the rows / values between this min and max value.
How would you have written the measure? Is it OK or can it be optimized?
Filtered_Measure =
Solved! Go to Solution.
I tried creating a parameter which is a table with much fewer rows than the original one. And using it as a between slicer, which then by a measure affects the results.
That was probably part of the solution. I also replaced a many-to-many-relation with a bridge table which may have sped things up more.
A direct way to pick both two separate values in a between slicer I haven't found as of yet.
Creating a parameter with a small table (few rows) compared to the actual database table sped things up. Also created a bridge table, replacing a many-to-many relationship.
I red through different Dax-functions like values(), thanks. I didn't find one that suited my exact needs to pick efficiently the two separate selected values in a between-slicer. May still be one, but haven't been able to identify one in that case.
Creating a parameter with a small table (few rows) compared to the actual database table sped things up. Also created a bridge table, replacing a many-to-many relationship.
I tried creating a parameter which is a table with much fewer rows than the original one. And using it as a between slicer, which then by a measure affects the results.
That was probably part of the solution. I also replaced a many-to-many-relation with a bridge table which may have sped things up more.
A direct way to pick both two separate values in a between slicer I haven't found as of yet.
As posted your CALCULATE filter does nothing. Side note - instead of && use commas.
You will want to evaluate the actual [Measure] code.
Hi,
Not sure I understand fully.
The measure appears to work OK. I have thought that when not using the FILTER-statement, it is inferred from the context.
Is using ","-sign instead of && viable in this case? I need both conditions fulfilled for the measure's results.
A follow-up question is what is the most effective way / fastest dax to get the value specified in slicers by the users, like in a between slicer, the minimum value, and the maximum value, those two ones. I have looked at selectedvalue() but didn't get it to work here if I remember correctly.
Sorry if I have made some slight wrong-writing of the measure above, in transitioning it from my actual measure to this simpler one,.
Read about FILTERS and VALUES and MAXX amd MINX.
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!