This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello guys,
I would like to use same function IF like in Excel.
Table - is already calculated field and it's live source. I have 2 columns: Plan, Actual. I want to create measure that will shows me values like this: IF(Actual>1;1;Actual). But in power bi will give me value 1 everywhere, even in Total, because totals here is calculated field too, that used same formula, instead of sum by column. How can i solve it?
| Plan | Actual | Corrected | |
| 1 | 1 | 1 | |
| 1 | 1 | 1 | |
| 1 | 2 | 1 | |
| 1 | |||
| 1 | 5 | 1 | |
| 1 | 1 | 1 | |
| 1 | 1 | 1 | |
| 1 | 3 | 1 | |
| 1 | |||
| 1 | |||
| 1 | |||
| 1 | |||
| 1 | |||
| 1 | |||
| Total | 14 | 14 | 7 |
if Corrected is already a calculated column, wouldn't simple SUM measure do OK?
CorrectedValue = SUM('Table'[Corrected])
Please note it's a new Measure not a new column
Can you create calculated column in this table with the IF syntax you posted? and then apply the calculated measure?
Hi @Stachu
No i can't as it's live data. The easiest way is to ask admin to add new column with my function.
Hi @idontexist,
In addition, could you try using SUMX function to create a new measure to see if it works in your scenario? ![]()
Measure = sumx(Table1, IF(Actual>1;1;Actual))
Or
Measure = sumx(Table1,[Corrected])
Regards
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 25 | |
| 25 | |
| 21 | |
| 14 |
| User | Count |
|---|---|
| 59 | |
| 50 | |
| 25 | |
| 20 | |
| 20 |