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 need to replicate the following formula as a measure for PBI :
Column D (Acumulative) + Column C - Column B
How can I calculate this?
Thanks,
Solved! Go to Solution.
Hi @cristianml
You may try below measure:
Measure =
IF (
MAX ( Table1[A] ) = BLANK (),
SUM ( Table2[D] ),
CALCULATE (
SUM ( Table2[D] ) + SUM ( Table1[C] )
- SUM ( Table1[B] ),
FILTER ( ALL ( Table1 ), Table1[A] <= MAX ( Table1[A] ) )
)
)
Regards,
Hi,
I would like to replicate the following formula in Dax:
"Inventory" (Column D) + "Revenue" (C) - "Billings" (B)
The thing is that I have "Revenue" and "Billings" in same column in my query in Power BI:
Thanks,
Hi @cristianml
You may try below measure:
Measure =
IF (
MAX ( Table1[A] ) = BLANK (),
SUM ( Table2[D] ),
CALCULATE (
SUM ( Table2[D] ) + SUM ( Table1[C] )
- SUM ( Table1[B] ),
FILTER ( ALL ( Table1 ), Table1[A] <= MAX ( Table1[A] ) )
)
)
Regards,
Hi @v-cherch-msft ,
Finally I solved it with the following formula:
Hi @cristianml
Kindly mark my answer as a solution if you feel that makes sense.
Regards,
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |