The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have situation depending on slicer selection to execute the correct SelectedValue function. For some reason I am pulling all records, not just the records being requested.
The formats I have tried are as follows
SWITCH( _case,
1, SelectedValue(slicervalue))
IF ( _case = 1, SelectedValue(slicervalue))
I have researched and attemted many optons with none of them working.
What is happening and how can I make this work.
I appreciate your help.
pjb120
Solved! Go to Solution.
Is it a measure you are creating(you cannot create a column) ? With the measure switch usually goes with min/max
switch(max(index),
1, SelectedValue())
Is it a measure you are creating(you cannot create a column) ? With the measure switch usually goes with min/max
switch(max(index),
1, SelectedValue())
Thanks for the quick reply. I cannot use the MAX function as I am using the variable _sterm. I also tried with the If statement to no success.
Below is my measure, the objective is to substitute one of the following Fall, Spring, or Summer into the variable _iterm , it should only return the records for one off these terms. If I make _iterm = SELECTEDVALUE(FallFilter[Term]) only he Fall records are returned.
Any advice you can offer is appreciated.,
-----------------------------------------------------------------------------------------------------------------------------------------------
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
79 | |
71 | |
48 | |
41 |
User | Count |
---|---|
138 | |
108 | |
71 | |
64 | |
58 |