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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
How do I calculate the distributed value, using DAX, as shown in the example below?
| Customer | Value | Distributed value |
| blank | 20 | 0 |
| customer1 | 40 | 50 |
| customer2 | 40 | 50 |
I have some sales for which I don't have clients registered (cash transactions), and I'd like to distribtue the value over the other customers
Solved! Go to Solution.
Hi, @Steven-conance
Please try formula like:
Distributed percentage(not blank) =
var total=CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),'Table'[Customer]<>"blank"))
return IF(SELECTEDVALUE('Table'[Customer])="blank",0,SELECTEDVALUE('Table'[Value])/total)Distributed value =
var total=CALCULATE(SUM('Table'[Value]),ALLSELECTED())
return total*[Distribute percentage(not blank)]
Best Regards,
Community Support Team _ Eason
Hi, @Steven-conance
Please try formula like:
Distributed percentage(not blank) =
var total=CALCULATE(SUM('Table'[Value]),FILTER(ALLSELECTED('Table'),'Table'[Customer]<>"blank"))
return IF(SELECTEDVALUE('Table'[Customer])="blank",0,SELECTEDVALUE('Table'[Value])/total)Distributed value =
var total=CALCULATE(SUM('Table'[Value]),ALLSELECTED())
return total*[Distribute percentage(not blank)]
Best Regards,
Community Support Team _ Eason
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 |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 20 | |
| 17 | |
| 12 |