This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 26 | |
| 22 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 45 | |
| 42 | |
| 41 | |
| 21 | |
| 18 |