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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rajukarkee
Regular Visitor

Multiple selectedValues DAX

Test Site Threshold =
VAR ProgramSelected =
    SELECTEDVALUE ( 'Master BTPP Report'[Program] )
VAR YearSelected =
    SELECTEDVALUE ( 'Master BTPP Report'[Application Received Date].[Year] )
RETURN
    SWITCH (
        ProgramSelected,YearSelected,
        "Charge Ready Bridge", 2019,5,
"T1",2019,6,
"T2", 2019,7,
"T3",2019,8,
"T4",2019 ,9,
"T4", 2019,10,
0

     )
 
What I am trying to achieve is ,based on Program and year Selection ( 2 different slicers) by the user, i would like to assign value to measure "Test Site Threshold", please help.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

You could try the following:

Test Site Threshold =
VAR ProgramSelected =
    SELECTEDVALUE ( 'Master BTPP Report'[Program] )
VAR YearSelected =
    SELECTEDVALUE ( 'Master BTPP Report'[Application Received Date].[Year] )
RETURN 
   IF ( YearSelected = 2019,
    SWITCH (
        ProgramSelected,
        "Charge Ready Bridge",5,
"T1",6,
"T2",7,
"T3",8,
"T4",9,
"T4",10,
0 ),0)

If I answer your question, please mark my post as a solution, this will also help others.
Please give Kudos for support.

Tomas Santandreu Polanco |Principal Business Intelligence Consultant
www.designmind.com

View solution in original post

1 REPLY 1
Anonymous
Not applicable

You could try the following:

Test Site Threshold =
VAR ProgramSelected =
    SELECTEDVALUE ( 'Master BTPP Report'[Program] )
VAR YearSelected =
    SELECTEDVALUE ( 'Master BTPP Report'[Application Received Date].[Year] )
RETURN 
   IF ( YearSelected = 2019,
    SWITCH (
        ProgramSelected,
        "Charge Ready Bridge",5,
"T1",6,
"T2",7,
"T3",8,
"T4",9,
"T4",10,
0 ),0)

If I answer your question, please mark my post as a solution, this will also help others.
Please give Kudos for support.

Tomas Santandreu Polanco |Principal Business Intelligence Consultant
www.designmind.com

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.