cancel
Showing results for
Did you mean:
Frequent Visitor

## Show value associated with a calculation in another column

Hi All,

I'm having trouble with displaying a value associated with a calculation in another column. The formula below shows the maximum Instructing Client share (based on the Order Value (excl. VAT)) for a particular Year/Quarter/Month determined by a Date slicer.

Largest Instructing Client Share Result =
MAXX(
KEEPFILTERS(
VALUES('ForecaseAndActual'[Instructing Client])),CALCULATE(
)))

I want to show the associated Instructing Client that the resulting value is displaying.

Data is formatted as follows:

 Instructing Client Order Received Order Amount (excl. VAT) A 05/03/2019 £                   9,500.52 B 20/03/2019 £               119,380.00 C 19/03/2019 £                   9,556.00 D 06/03/2019 £                 91,860.00 D 06/03/2019 £                 52,310.00 E 11/03/2019 £                   6,500.00

Any help would be appreciated. Many thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User

## Re: Show value associated with a calculation in another column

Perhaps something along the lines of:

```VAR __max =

MAXX(
KEEPFILTERS(
VALUES('ForecaseAndActual'[Instructing Client])),CALCULATE(
)))

VAR __table = SUMMARIZE('ForecaseAndActual',[Instructing Client],"__orderAmount",CALCULATE(
)))

RETURN

MAXX(FILTER(__table,[__orderAmount]=__max),[Instructing Client])```

### I have book! Learn Power BI from Packt

Proud to be a Datanaut!

Highlighted
Super User

## Re: Show value associated with a calculation in another column

Perhaps something along the lines of:

```VAR __max =

MAXX(
KEEPFILTERS(
VALUES('ForecaseAndActual'[Instructing Client])),CALCULATE(
)))

VAR __table = SUMMARIZE('ForecaseAndActual',[Instructing Client],"__orderAmount",CALCULATE(
)))

RETURN

MAXX(FILTER(__table,[__orderAmount]=__max),[Instructing Client])```

### I have book! Learn Power BI from Packt

Proud to be a Datanaut!

Announcements

#### Community Highlights

Find out what's new in the Power BI Community!

#### Power Platform Summit North America

Register by September 5 to save \$200

#### Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

#### Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 66 members 1,267 guests
Recent signins: