Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register 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
User | Count |
---|---|
82 | |
78 | |
67 | |
46 | |
45 |
User | Count |
---|---|
105 | |
44 | |
39 | |
39 | |
39 |