cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dpotta
Resolver I
Resolver I

Change a measure based on a slicer value for only one row

Hi

 

Please can anyone offer any hep with this?

 

I have a fact table as below

 

Country        Value

Nicaragua10
Mexico20
Honduras30
Guatemala40
El Salvador50
Ecuador60
Costa Rica70
Colombia80
Chile90
Brazil100
Bolivia110
Argentina120
Peru130
Paraguay140
Venezuela150
Uruguay160
Panama170

 

Then I have a slicer from a dim table for all countries which is connected to the fact table by country.

 

Connected Measure to change only the values for one country

What I am trying to do is to change the fact table value for only the selected country based  on a measure.

 

So, with the slicer in operation, the value for the selected country only would increase by a percentage. So, if a user here selected 

COSTA RICA, then the value for Costa rica only would increase as such based on another slicer which would multipy the original value by 1, 1.01, 1.02 1.03 etc.

 

 

Slicer  
012
0%1%2%
7070.771.4

 

VAlues for all other countries would remain the same, i.e. multiplied by 1

 

Any ideas?

 

Regards

 

Dave

1 ACCEPTED SOLUTION
dpotta
Resolver I
Resolver I

 have done what I needed with a measure like this used in conjunction with an unrelated second dimCountrytable and a slicer that filters on using selectedvalue

 

Projection =
SUMX ( example ,
IF ( example[Country] = [SELECTEDVALUE],
example[Value] * max(Multplier[multiplier]), example[Value] ) )

View solution in original post

1 REPLY 1
dpotta
Resolver I
Resolver I

 have done what I needed with a measure like this used in conjunction with an unrelated second dimCountrytable and a slicer that filters on using selectedvalue

 

Projection =
SUMX ( example ,
IF ( example[Country] = [SELECTEDVALUE],
example[Value] * max(Multplier[multiplier]), example[Value] ) )

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors