Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Good morning friends, I have a database like this below.
With the columns, bank/date/value and I need to calculate this answer column.
It is calculated as this:
I take the lowest value of the VALUE column of the bank independent of the date, i.e. ABC = 1000, TOB = 2000, NNN= n/a ,
TTT = n/a.
And decrease from that value a specific fixed number. From the ABC bank I decrease 50 and the bank TOB decrease 100. Of the seats that have nothing in the value column, I leave blank.
Can you help me please!?
| BANCO | DATE | VALUE | ANSWER |
| ABC | 01/01/2021 | 1000 | 950 |
| TOB | 01/01/2021 | 2000 | 1900 |
| TOB | 01/02/2021 | 2100 | 1900 |
| TOB | 01/03/2021 | 2200 | 1900 |
| ABC | 01/02/2021 | 1200 | |
| NNN | 01/01/2021 | ||
| TTT | 01/01/2021 | ||
| ABC | 01/03/2021 | 1300 | 950 |
Solved! Go to Solution.
@felipesaw , a new column
=
var _min = minx(filter(table, [BANCO] = earlier([[BANCO]) ), [VALUE])
return
Switch(True(),
isblank(_min ) , blank() ,
[BANCO] ="ABC", _min -50 ,
_min-100
)
@felipesaw , a new column
=
var _min = minx(filter(table, [BANCO] = earlier([[BANCO]) ), [VALUE])
return
Switch(True(),
isblank(_min ) , blank() ,
[BANCO] ="ABC", _min -50 ,
_min-100
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 11 | |
| 10 | |
| 8 | |
| 8 |