Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

what if parameter giving me an aggregation error

I have a column called duration. I want to create a dynamic what if parameter that a user can change.

Duration column

5’

10’

20

8’

….

If the parameter is set to 10’ and up then its “greater than parameter” or “less than parameter”

i.e.

5 less

10 less

20 greater

8 less

I created a parameter like this:

 

 

 

Then I create a new column:

 

 

 

 

With my function lookling like this:

lower_or_greater = IF(Parameter[Parameter Value] < 'individual lines csv'[Duration],"Smaller Parameter" , "Greater Parameter")

So this gets me the values Smaller/Greater Parameter like this:

 

 

 

 

But the problem that im currently having is that, even when I change the slider, it still is defaulted to the 500 default that I had set earlier:

Even with the slider that i put on there, it will not change the location"

 

 

 

 

Can someone tell me what im doing incorrectly perhaps.
my columns look like this:

 

 

 

 

 

 

 

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi Anonymous ,

    I created a sample pbix file(see attachment), please check whether that is what you want.

    Create a measure as below to replace your original calculated column [lower_or_greater]:

    Best Regards

5 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    Anonymous Columns are not dynamic based on user input, they are calculated once when created and only recalculated during data refresh.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    I created a sample pbix file(see attachment), please check whether that is what you want.

    Create a measure as below to replace your original calculated column [lower_or_greater]:

    Best Regards