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
jctasu
Regular Visitor

Dynamic Table with field parameter and two value slicers partially working.

Hello Everyone.

 

I need some help to cross the finish line on a visual and was hoping it would be an easy fix with some guidance from the community.

 

I have a matrix table visual as shown below. 

 

Screenshot 2025-01-22 093455.jpg    Screenshot 2025-01-22 093551.jpg

I want this table to update dynamicaly based on the CV and SV buttons.  So far I have been able to do that.  I also want it to update dynamically based on the negative and/or positive limit that the user selects in the negative and positive limit slicers.  So far I have been able to accomplish this partially with the CV selection, but not the SV selection.  Below example shows the CV table accurately change based on the limit slicers, but when changed to the SV view the table is still basing results off of the CV measure.  Measures for columns shown as 1 on the table are shown below (IncludeValueCV, IncludeValueSV).

jctasu_0-1737566922187.png

IncludeValueCV = IF(

    [CV Cur] < SELECTEDVALUE('Lower Limit'[Lower Limit]) ||

    [CV Cur] > SELECTEDVALUE('Upper Limit'[Upper Limit]),

    1,

    0

)

 

IncludeValueSV = IF(

    [SV Cur] < SELECTEDVALUE('Lower Limit'[Lower Limit]) ||

    [SV Cur] > SELECTEDVALUE('Upper Limit'[Upper Limit]),

    1,

    0

)

 

Here are is the parameter and values that are in the matrix table.

 

jctasu_1-1737566951107.png

prm_variance_options = {

    ("CV", NAMEOF('fct_ev_data'[CV]), 0, "CV"),

    ("1", NAMEOF('fct_ev_data'[IncludeValueCV]), 1, "CV"),

    ("SV", NAMEOF('fct_ev_data'[SV **bleep** EOM]), 0, "SV"),

    ("1", NAMEOF('fct_ev_data'[IncludeValueSV]), 1, "SV")

 

Here are the parameters for the lower and upper limit slicers.

 

jctasu_2-1737566980457.png

 

Lower Limit = GENERATESERIES(-5000000, 0, 50000)

Lower Limit Value = SELECTEDVALUE('Lower Limit'[Lower Limit])

jctasu_3-1737566998205.png

 

Upper Limit = GENERATESERIES(0, 5000000, 50000)
Upper Limit Value = SELECTEDVALUE('Upper Limit'[Upper Limit])
 

I appreciate any guidance the community can provide in getting both CV and SV values in the matrix table when updating the lower and upper limit value slicers.

 

Thank you.

 

Joaquin C.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @jctasu ,

 

When switching slicers, because you have two 1 is in the field parameter, you may not be able to correctly recognize which 1 is which when switching and use the correct parameter.

vhuijieymsft_0-1737619861836.png

 

The solution is to create a calculated column that references the column in the Filed parameter that applies to the slicer, and then reference that calculated column in the measure syntax.

 

As you can see below, this is the simple field parameter I created:

vhuijieymsft_1-1737619861836.png

 

Create a calculated column:

vhuijieymsft_2-1737619876497.png

 

Create a measure:

Measure =
VAR _cv =
    IF (
        [CV Cur] < SELECTEDVALUE ( 'Lower Limit'[Lower Limit] )
            || [CV Cur] > SELECTEDVALUE ( 'Upper Limit'[Upper Limit] ),
        1,
        0
    )
VAR _sv =
    IF (
        [SV Cur] < SELECTEDVALUE ( 'Lower Limit'[Lower Limit] )
            || [SV Cur] > SELECTEDVALUE ( 'Upper Limit'[Upper Limit] ),
        1,
        0
    )
RETURN
    IF ( MAX ( 'Parameter'[Column] ) = "CV", _cv, _sv )

 

Apply measure to your visual objects.

 

If this does not solve your problem, please provide a Power BI Desktop file (with sensitive information removed) that comprehensively covers your issue or question in a usable format (not a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive (set to public access), SharePoint, or a Github repository and then share the URL of the file.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @jctasu ,

 

When switching slicers, because you have two 1 is in the field parameter, you may not be able to correctly recognize which 1 is which when switching and use the correct parameter.

vhuijieymsft_0-1737619861836.png

 

The solution is to create a calculated column that references the column in the Filed parameter that applies to the slicer, and then reference that calculated column in the measure syntax.

 

As you can see below, this is the simple field parameter I created:

vhuijieymsft_1-1737619861836.png

 

Create a calculated column:

vhuijieymsft_2-1737619876497.png

 

Create a measure:

Measure =
VAR _cv =
    IF (
        [CV Cur] < SELECTEDVALUE ( 'Lower Limit'[Lower Limit] )
            || [CV Cur] > SELECTEDVALUE ( 'Upper Limit'[Upper Limit] ),
        1,
        0
    )
VAR _sv =
    IF (
        [SV Cur] < SELECTEDVALUE ( 'Lower Limit'[Lower Limit] )
            || [SV Cur] > SELECTEDVALUE ( 'Upper Limit'[Upper Limit] ),
        1,
        0
    )
RETURN
    IF ( MAX ( 'Parameter'[Column] ) = "CV", _cv, _sv )

 

Apply measure to your visual objects.

 

If this does not solve your problem, please provide a Power BI Desktop file (with sensitive information removed) that comprehensively covers your issue or question in a usable format (not a screenshot). You can upload the PBIX file to a cloud storage service such as OneDrive, Google Drive (set to public access), SharePoint, or a Github repository and then share the URL of the file.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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