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
I need some help.
I'm trying to calculate the values of the Cal-production. it looks at EI column values and sum of previous results in cal-prod. if the sum of both are > than ROP column, it should display a number 800.
I can do that in Excel (see below), but I'm struggling to get that in Power BI
Cal-production ( in excel) D3 = IF(SUM(D2,B3)>C3,0,800)
| EI | ROP | Cal - production | |
| 1/1/2021 | 1440 | 1393 | 0 |
| 2/1/2021 | 1015 | 1393 | 800 |
| 3/1/2021 | 714 | 1393 | 0 |
| 4/1/2021 | 498 | 1393 | 800 |
| 5/1/2021 | 248 | 1442 | 0 |
This is what i get
Excel 0, 800,0,800
DAX 0,800,0,0
@ezeanya , Create a new column like
new column =
var _1 = maxx(filter(Table1, Table1[Date] < earlier(Table1[Date]) ), [Date])
return
if(maxx(filter(Table1, Table1[Date] =_1 ), [EL]) >[ROP], 800,0)
@amitchandak i forgot to mention that the D4 in the excel will be =IF(SUM(D3,B4,D2)>C4,0,800)
every new cell in a row has to add all the previous results
D3 = IF(SUM(D2,B3)>C3,0,800)
D4 = IF(SUM(D3,B4,D2)>C4,0,800)
D5 = =IF(SUM(D4,B5,D3,D2)>C5,0,800)
Till December month
Thanks for the respond. the ROP data is coming from measure data. So the earlier function is not working when I use this for a new measure. I tried using
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 19 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 20 | |
| 12 | |
| 10 |