Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I'm trying to find the most valueable customer who is lost.
For example, I'm caluculating the Lost Customer using the below dax.
Hi @Anonymous
Please always show a sample of youra data. Otherwise we have to invent names of columns, make assumptions, ask questions and it's an unnecessary waste of everybody's time.
You can create a measure and place it in a card visual. Along the lines of:
HighestPotentialName =
VAR highestRevenue_ =
CALCULATE ( MAX ( Table1[Revenue] ), Table1[Last Booking Day Duration] > 180 )
RETURN
CALCULATE (
DISTINCT ( Table1[Name] ),
Table[Revenue] = highestRevenue_,
Table1[Last Booking Day Duration] > 180
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
@AlB
Your formula has the potential to return an error if there is more than 1 customer with the same characteristics.
@Anonymous
Yeah, that's by design. So that the user is alerted if that is the case. They can then decide how to deal with those cases.
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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 29 | |
| 21 | |
| 12 | |
| 12 |