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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.