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
Anonymous
Not applicable

Dynamic Parameter

Hello,

 

I am brand new to Power BI and have been looking around the forum and can't seem to find the answer to this scenario. 

 

I am transitioning from Tableau to Power BI and to improve performance, I calcuate all my YTD, MTD measures prior to loading in Power BI.  I  am trying to set up something similiar to what I have below.  If the user wants to see YTD Volume- They select a Parameter String named YTD and that triggers the dashboard to display the YTD Volume Measure. 

 

Is there a way to achieve a similair set up in Power BI?  Thanks

 

BretPinkerton_1-1593360634685.png

 

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Anonymous 

You can write a measure to read a user selection from a table (your list of time periods) and display a different measure depending on the user selection.

Your [Time Periods] table would look like this.

Time Period
YTD
Rolling 13 Weeks
2019
MTD

The the measure to read the user selection and swtich the dispalyed value will be like so.

 

Selected Period Volume =
VAR _TimePeriod =
    SELECTEDVALUE ( 'Time Periods'[Time Period] )
RETURN
    SWITCH (
        _TimePeriod,
        'YTD', [YTD Volume],
        'Rolling 13 Weeks', [Rolling 13 Week Volume],
        '2019', [2019 Volume],
        'MTD', [MTD Volume]
    )

 

 

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@Anonymous 

You can write a measure to read a user selection from a table (your list of time periods) and display a different measure depending on the user selection.

Your [Time Periods] table would look like this.

Time Period
YTD
Rolling 13 Weeks
2019
MTD

The the measure to read the user selection and swtich the dispalyed value will be like so.

 

Selected Period Volume =
VAR _TimePeriod =
    SELECTEDVALUE ( 'Time Periods'[Time Period] )
RETURN
    SWITCH (
        _TimePeriod,
        'YTD', [YTD Volume],
        'Rolling 13 Weeks', [Rolling 13 Week Volume],
        '2019', [2019 Volume],
        'MTD', [MTD Volume]
    )

 

 

aj1973
Community Champion
Community Champion

Hi @Anonymous 

Yes there is a way. I am not familiar with Tableau but according to your description you can achieve what you want by using Bookmarks or Drillthrough with Power Bi.

 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-drill-through-buttons

 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-bookmarks

 

Or maybe if you can share Pibx file to help the community to better understand your issue

 

Regards

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

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.