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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Peleias
Helper I
Helper I

One Field control many SELECTIONVALUE (from New Paramenter/Fields)

Hi Community!🤗

 

I tried to search here on the forum and on youtube about the "new" Field functionality.

But the new functionality is still confusing to me in what I want.

 

Normally I use switch I filter everything by a single variant. example;

 

 

Dynamic Dur = 
var _selectedDur=SELECTEDVALUE(REF[IMGREF])
return
SWITCH(
    _selectedDuration,
    "Plan1", SELECTEDVALUE('Plan1'[Dur]),
    "Plan2", SELECTEDVALUE('Plan2'[Dur]),
    "Plan3", SELECTEDVALUE('Plan3'[Dur]),
    "Plan4", SELECTEDVALUE('Plan4'[Dur]),
    "Plan5", SELECTEDVALUE('Plan5'[Dur]),
        BLANK()
)

 

 And another mensure;

 

Dynamic Fin = 
var _selectedFin=SELECTEDVALUE(REF[IMGREF])
return
SWITCH(
    _selectedDuration,
    "Plan1", SELECTEDVALUE('Plan1'[Fin]),
    "Plan2", SELECTEDVALUE('Plan2'[Fin]),
    "Plan3", SELECTEDVALUE('Plan3'[Fin]),
    "Plan4", SELECTEDVALUE('Plan4'[Fin]),
    "Plan5", SELECTEDVALUE('Plan5'[Fin]),
        BLANK()
)

 

 

I create several measures based on filter in SELECTEDVALUE(REF[IMGREF]).

 

How do I do this with Modeling/New Parameter/Fields?

I tried here relation, but without success.

 

thanks!

2 REPLIES 2
sturlaws
Resident Rockstar
Resident Rockstar

Hi, @Peleias,

 

not quite sure what your issue is. Have you enabled the preview feature? Or is it enabled, but you are having issues creating the parameters?

 

Cheers,
Sturla

Hi @sturlaws, My doubt is how to control 5 different Fields, each with 3 options. Similar as I do with switch.


In the case filter in SELECTEDVALUE(REF[IMGREF]) controls the switches.
This column has 5 units (Plan1, Plan2, Plan3, Plan4, Plan5).
Each PlanN has 3 columns.
Selecting Plan1, you will have the columns Plan1[Fin], Plan1[Dur], Plan1[Sta] highlighted.
Selecting Plan2, you will have the columns Plan2[Fin], Plan2[Dur], Plan2[Sta] highlighted.

 

➡️That is SELECTEDVALUE(REF[IMGREF]) controls the visibility of 3 columns.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.