Forum Discussion
Help with SWITCH
Hi Everyone,
I'm relatively new to PBI (former Tableau user). I've got a dashboard I'm working on where I want to display tickets (from a ticketing system) created over x days ago, giving the user the option to pick either 1 day or 10 days.
I set up a table (not joined to any other) called DaysThreshold and it contains one column (days) with values 1 and 10.
I created a new measure in my main data source called Selected days
lalaVee77 Instead of using a Switch and Selected Value Function try with a Numeric parameter and use the measure produced from the parameter in your formula.
5 Replies
- ray_aramburoSuper User
Hi lalaVee77 is your DaysThreshold[Days] column a numerical or text type?
- lalaVee77New Member
I've tried it both ways.
- ray_aramburoSuper User
lalaVee77 Instead of using a Switch and Selected Value Function try with a Numeric parameter and use the measure produced from the parameter in your formula.
- Ashish_MathurSuper User
Hi,
Share some data to work with and show the expected result. Share data in a format that can be pasted in an MS Excel file.
- lalaVee77New Member
Thanks so much!