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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Showing incorrect values when slicer is selected

Hi, I have defined parameter from 1 to 100 called as threshold value. I created a new column and that column I have used in a slicer. But when I select " At above Threshold"-it shows both the values "At above Threshold values" and "Below Threshold values", but when we select  Below Threshold or No change, it shows the correct values for both. Here, I selected "At Above Threshold"-Green color indicate-Below Threshold, Red color indicate-At above Threshold, Grey color-No Change.

What I am doing wrong here? Any Solution?

Mun_123_0-1674042540462.png

 

 

Measure for new column-

Filter threshold =
 IF(
        new_nds_release_diff_ds[Metric_value]-new_nds_release_diff_ds[old_Metric_value]=0.00,"No Change",
   
    IF
      (
        'Difference % Threshold'[% Diff]>=SELECTEDVALUE('Difference % Threshold'[Difference % Threshold]),"At/Above Threshold",
        IF(
    'Difference % Threshold'[% Diff]<SELECTEDVALUE('Difference % Threshold'[Difference % Threshold]),"Below Threshold"
   

 )))
 
1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Calculated columns are only calculated during data refresh, so they pay no attention to slicers and filters. To respond dynamically to slicer changes you need to create a measure instead. try

Filter threshold =
IF (
    SELECTEDVALUE ( new_nds_release_diff_ds[Metric_value] )
        - SELECTEDVALUE ( new_nds_release_diff_ds[old_Metric_value] ) = 0.00,
    "No Change",
    IF (
        'Difference % Threshold'[% Diff]
            >= SELECTEDVALUE ( 'Difference % Threshold'[Difference % Threshold] ),
        "At/Above Threshold",
        IF (
            'Difference % Threshold'[% Diff]
                < SELECTEDVALUE ( 'Difference % Threshold'[Difference % Threshold] ),
            "Below Threshold"
        )
    )
)

this is assuming that [% Diff] is a measure.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

yes, I have got the answer. I have created 3 different measures and then I have created table of these measures of same name and then again, I have created new measure and that I have applied in page filter.

johnt75
Super User
Super User

Calculated columns are only calculated during data refresh, so they pay no attention to slicers and filters. To respond dynamically to slicer changes you need to create a measure instead. try

Filter threshold =
IF (
    SELECTEDVALUE ( new_nds_release_diff_ds[Metric_value] )
        - SELECTEDVALUE ( new_nds_release_diff_ds[old_Metric_value] ) = 0.00,
    "No Change",
    IF (
        'Difference % Threshold'[% Diff]
            >= SELECTEDVALUE ( 'Difference % Threshold'[Difference % Threshold] ),
        "At/Above Threshold",
        IF (
            'Difference % Threshold'[% Diff]
                < SELECTEDVALUE ( 'Difference % Threshold'[Difference % Threshold] ),
            "Below Threshold"
        )
    )
)

this is assuming that [% Diff] is a measure.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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