cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Frequent Visitor

## How to display the peak value and date on card

I've been trying to display the peak value and date based on a graph. In my sample, I want to display 432,769.65 and 30-Tue.

1 ACCEPTED SOLUTION
Super User

Hello @powerbiguy_ ,

I agress with @Ritaf1983 solution but if you want without clicking a point, then you should create measure as below depends on the maximum value card visual will update automatically.

Here is the sample data that I considered:

Your calculated measure looks as below:

``````Card Measure =
Var a = MAX('Table'[Sales])
Var b = LOOKUPVALUE('Table'[Date],'Table'[Sales],a)
Return
"Maximum Sales are: "&a& UNICHAR(10)&"On: "&b``````

Output looks as below:

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

3 REPLIES 3
Super User

Hello @powerbiguy_ ,

I agress with @Ritaf1983 solution but if you want without clicking a point, then you should create measure as below depends on the maximum value card visual will update automatically.

Here is the sample data that I considered:

Your calculated measure looks as below:

``````Card Measure =
Var a = MAX('Table'[Sales])
Var b = LOOKUPVALUE('Table'[Date],'Table'[Sales],a)
Return
"Maximum Sales are: "&a& UNICHAR(10)&"On: "&b``````

Output looks as below:

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Super User

I thought that @powerbiguy_  wanted value based on his hovering.
Now, I understand that he wants the maximum value and its date.
I deleted my suggestion

Regards,
Rita Fainshtein | Microsoft MVP
Super User

Step 1: I read the same data file 3 times , names of those datasheets are 'Sheet1', 'Sheet1+1', 'Sheet1-1' each.

Step 2: I added an index column in the 1st table 'Sheet1'.

Step 3: I added an index column in the 2nd table 'Sheet1+1'.

Step 4: I added an index column in the 3rd table 'Sheet1-1'.

Step 5: I made 2 relationships.

Step 6: I made some columns in 1st table 'Sheet1'.

Step 7: I made a mesure.

M_Max Peak = MAX('Sheet1'[Peak Value])

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

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

#### Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors