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
jpereztang
Helper I
Helper I

Change measure value based on measure

Hi everyone,

 

I know you have an idea how to achieve it.

 

this is my data

 

put this side.png

As simple as it appears i want to put the max value of Total column when [Is in Range] column is 1 for all rows that [is in Range] column is zero.

 

These are my formulas

 

RankByDur = IF(ISBLANK([Total]), BLANK()
		,RANKX(ALLSELECTED(Hoja1[Duration]), [Total], ,0)
)
Is In Range = IF(ISBLANK([Total]), BLANK(),
               IF([RankByDur]>[Outlier Count] , 1, 0))
Total changing outlier = IF([Is In Range]=1
								,[Total] 
								, 1
)

Also if you want u can download pbix test from here:

https://www.dropbox.com/s/puq0nw8vrdg45zc/Replacing%20value%20test.pbix?dl=0

 

Thanks in advance,

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

 

Try this formula

 

=if([Is In Range]=0,MAXX(FILTER(ALL(Hoja1[Duration]),[Is In Range]=1),[Total]),[Total])

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

 

Try this formula

 

=if([Is In Range]=0,MAXX(FILTER(ALL(Hoja1[Duration]),[Is In Range]=1),[Total]),[Total])

Hope this helps.

 

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.

Top Solution Authors