Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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] ) )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.