Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |