Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi Guys,
i'm having difficulties with the performance. When I use measure "Year-1 (Month)" alone it loads in 5 sec.
Once I use the same but as part of another measure which selects the measure based on the filtered option. It slows down to 30 sec.. The variables add around 5 sec (even when they only find out the filtered item and if it is HASONFILTER).
My goal is to use one measure when "Year-1" option is filtered and another measure when "Budget" is filtered etc..
I cant understand how it can slow down so significantly. Thank you for any help!
Hi @jacu
If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!
Hi @v-diye-msft ,
no, unfortunately it did not help and also I did not fix it yet. I hoped it could be some easy fix. I will spend some time on it later as need to finish something else first.
Hi @jacu ,
First of all why are you using the RETURN after every variable?
You can use variable within variable without the return.
Looking at you code you are picking up the text and then selecting the 8 first carachters of the text within a variable (assuming that because of the names withing brackets without table reference).
Have you also tried instead of using an if statment create the swithc with the validation of both the variables something similar to this:
Goal (Month) =
VAR L1 = [MI]
VAR ITM =
LEFT ( [ITM]; 8 )
VAR SEL_VAL = [SI]
RETURN
SWITCH (
TRUE ();
L1 = FALSE ()
&& ITM = "Budget"; [Net Contribution Budget (month)];
L1 = FALSE ()
&& ITM = "Year-1"; [Net Contribution PY (month)];
L1 = FALSE ()
&& ITM = "Year-2"; [Net Contribution Year-2 (month)];
L1 = FALSE ()
&& ITM = "Forecast"; [Net Contribution Forecast (month)];
L1 = TRUE ()
&& ITM = "Budget"; [Budget (Month):];
L1 = TRUE ()
&& ITM = "Year-1"; [Year-1 (Month):];
L1 = TRUE ()
&& ITM = "Year-2"; [Year-2 (Month):];
L1 = TRUE ()
&& ITM = "Forecast"; [Forecast (Month):]
)
Not sure if this can help without any example. If this does not work can you share a sample file.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsIf you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 44 | |
| 42 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 72 | |
| 66 | |
| 33 | |
| 32 | |
| 31 |