Forum Discussion
jmeccles
9 years agoHelper I
Dynamic Measure Values Based on Slicer Selection with Options that are Not Connected to the Data
Hi there, Everyone! So, I have a spreadsheet with sales values as shown below: [Sales] Account No. Sales Date Sales Year Sales Amount Branch Department Invoice Number ...
- 9 years ago
Hi, Try with this:
1. Create a calculated column in Sales Table:
SalesAmountWAdjustment = DIVIDE ( Sales[Sales Amount], LOOKUPVALUE ( 'Adjustment Rates'[Nominal Rate], 'Adjustment Rates'[Year], Sales[Sales Year] ) )2. Create a New Table --Using Enter Data
3. Insert a Slicer Visual With Options Field
4. Finally Create a Measure :
Measure = IF ( SELECTEDVALUE ( Options[Options] ) = "Adjusted", SUM ( Sales[SalesAmountWAdjustment] ), SUM ( Sales[Sales Amount] ) )5. Insert this measure in a Card Visual or another that you desire.
Regards
Victor
Lima - Peru
theov
4 years agoAdvocate III
You can create a parameter hosting the options with datatable, no need for relationship with other tables. Have your measures ready for each option and then use SWITCH and SELECTEDVALUE together and nest your measures inside.
This video explains it in two ways thoroughly: