Forum Discussion
Dynamically multiply measures with different values
- 8 years ago
Hi ichebobo,
I have analyzed your table, but I didn't find a relationship between table 'StationIDsCost' and 'A2011ConfigData', you should create a column in 'A2011ConfigData' and then create a relationship between the two table.
Regards,
Jimmy Tao
Hi ichebobo,
Modify your formula like this:
TotalAgree =
IF (
ISFILTERED ( Parks[Park] ),
SWITCH (
FIRSTNONBLANK ( Parks[ParkNo], Parks[ParkNo] ),
"BOAT-A", [BOAT-A] * 0.08,
"BOAT-B", [BOAT-B] * 0.08,
"CAR-A", [CAR-A] * 0.06,
"CAR-B", [CAR-B] * 0.06,
"BIKE-A", [BIKE-A] * 0.07,
"BIKE-B", [BIKE-B] * 0.07
),
BLANK ()
)
Regards,
Jimmy Tao
Thanks Jimmy Tao.
The expression has jumped up the figures for the measure.
I expect to multiply or make this rate 'active' only on the parameter of the measures.
I've sent you the pbix through your email.
Please have a look.
- v-yuta-msft8 years agoCommunity Support
Hi ichebobo,
I'm afraid what-if parameter can't realize what you want because the value you selected in parameter slicer is single, not based on condition. As a workaround, you may create a new table which contains two columns [StationID] and its multiplied rate and create a slicer based on column [StationID] in the new table.
Regards,
Jimmy Tao
- Anonymous8 years agoNot applicable
Hi Jimmy Tao,
I've created a new table and its multiples. I even had to put it on a new page because I could not make it on same page as I am unable to write a conditional statement or DAX to make it show on same page .
I'd used the same DAX statement which works on page 1.
But the multiples page 2 shows blank on selection of the slicers. I have tried making the relationships but still no success.
I've sent the Pbix file to your inbox
Please Help.
- v-yuta-msft8 years agoCommunity Support
Hi ichebobo,
I have analyzed your table, but I didn't find a relationship between table 'StationIDsCost' and 'A2011ConfigData', you should create a column in 'A2011ConfigData' and then create a relationship between the two table.
Regards,
Jimmy Tao