Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I need to visulize a card with the max of the total profit for each project No,but I need to visulize the project number not the max profit vlaue itself
this is a sample of the data
| ProjectNo | Category | Profit |
| 1 | Lic | 1000 |
| 1 | Dev | 1000 |
| 2 | Lic | 2000 |
| 2 | Lic | 1000 |
| 2 | Dev | 1000 |
This how I want to display the card
| "The Max project Number profit is" | 2 |
Appricaite your help
Solved! Go to Solution.
Hi @m_anees
Place this measure in a card visual
Measure =
VAR aux_ =
TOPN ( 1, ALL ( Table1[ProjectNo] ), CALCULATE ( SUM ( Table[Profit] ) ) )
RETURN
"The Max project Number profit is " & MAXX ( aux_, [ProjectNo] )
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi @m_anees
Place this measure in a card visual
Measure =
VAR aux_ =
TOPN ( 1, ALL ( Table1[ProjectNo] ), CALCULATE ( SUM ( Table[Profit] ) ) )
RETURN
"The Max project Number profit is " & MAXX ( aux_, [ProjectNo] )
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Thank you so much
@m_anees , Try a measure like
measure = "The Max project Number profit is" & CALCULATE(Max(Table[Project]),TOPN(1,all(Table[ProjectNo]),calculate(Sum(Table[Profit])),DESC),VALUES(ProjectNo[ProjectNo]))
TOPN should help : https://www.youtube.com/watch?v=QIVEFp-QiOk
Thank you so much it's working
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.