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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.