Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
patxifunes
New Member

Performance problems with what-if parameter

Hi, 

I have an important performance using a what-if parameter. The formula below works reasonably well considering that the LLAMADAS table have millions of rows:

RACS.CALCULATE(
    COUNTROWS(
        FILTER(
            SUMMARIZE('Llamadas', LLAMADAS[FK_MATRICULA], "ATEND", LLAMADAS[Llamadas Atendidas]),
            [ATEND] > 150
        )
    )
 
However, when I substitute the threshold of 150 by a what-if parameter the measure doesn't work:
 
RACS. =
    VAR minLlm = [Umbral Llm]
    RETURN CALCULATE(
    COUNTROWS(
        FILTER(
            SUMMARIZE('Llamadas', LLAMADAS[FK_MATRICULA], "ATEND", LLAMADAS[Llamadas Atendidas]),
            [ATEND] > minLlm
        )
    )
)
)
4 REPLIES 4
patxifunes
New Member

Actually I am using the parameter threshold Value:

patxifunes_0-1698591192304.png


I have tested using MAX('Min Llamadas Atendidas'[Min Llamadas Atendidas]) but It doesn't work:

patxifunes_1-1698591251539.png


Using the fixed threshold It works ok:

patxifunes_2-1698591383751.png

 



 



Hi,

Could you please click to see the detail of the error? This helps to understand what is not properly configured.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Insufficient resources... but I am using a direct query source.

patxifunes_0-1698593464343.png

 

Jihwan_Kim
Super User
Super User

Hi, I am not sure your how your parameter table looks like, but I try to create a numeric range parameter like below.

 

It shows that the measure that automatically created is described with the word "Value".

 

Jihwan_Kim_0-1698590118535.png

 

 

For the VAR inside the measure you created, please try use the measure directly or use MAX DAX function with the column.
Something like the below picture.

 

Jihwan_Kim_2-1698590307415.png

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors