Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
I am currently trying to do the following thing:
I have a filter that is either "new" or "old", both optioins can be selected or also just one. I need to apply the following conditions:
- If "new" is selected, calculate the sum of column 1
- If "old" is selected, calculate the sum of column 2
- If both are selected, calculate the sum of column 3 (which is basically the sum of column 1 and column 2)
Is this possible?
Thank you
Solved! Go to Solution.
@Youdontknowme , Try a new column
Switch( Selectedvalue(Table[options]) ,
"new", sum(Table[column1]),
"old", sum(Table[column2]),
sum(Table[column3])
)
@Youdontknowme , Try a new column
Switch( Selectedvalue(Table[options]) ,
"new", sum(Table[column1]),
"old", sum(Table[column2]),
sum(Table[column3])
)
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 29 | |
| 25 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 45 | |
| 32 | |
| 17 | |
| 16 | |
| 16 |