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
Anonymous
Not applicable

Display value based on highest selected value within multiple selections

Hi Team,

bandicam 2021-02-22 13-03-01-891.jpg

I want the result of test growth to display 0.71 based on the highest month which is July but it ended up sum all of the value and ended up with result -1.0 for the total value.

Is there anyway to display only row value based on highest selected month that come with multiple selections as title mentioned.

 

Thank you.

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Create a measure as below:

_Growth = 
var  _maxmonth=CALCULATE(MAX('Table'[Month]),ALLSELECTED('Table'))
Return
IF(ISINSCOPE('Table'[Month]),
SUM('Table'[Growth]),
CALCULATE(SUM('Table'[Growth]),FILTER(ALL('Table'),'Table'[Month]=_maxmonth)))

And you will see:

 

v-kelly-msft_1-1614133357247.png

 

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Create a measure as below:

_Growth = 
var  _maxmonth=CALCULATE(MAX('Table'[Month]),ALLSELECTED('Table'))
Return
IF(ISINSCOPE('Table'[Month]),
SUM('Table'[Growth]),
CALCULATE(SUM('Table'[Growth]),FILTER(ALL('Table'),'Table'[Month]=_maxmonth)))

And you will see:

 

v-kelly-msft_1-1614133357247.png

 

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

stevedep
Memorable Member
Memorable Member

Perhaps something like this, (btw its a DAX question):

Measure = 
VAR _MaxMonth = calculate(max(month), allselected(months))
return
calculate(max(test growth)), filter(data, month = _MaxMonth))

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