Due to inactivity, we’d like to conclude that you no longer require assistance to solve your inquiry.
If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the check box
Hello @Tamiri , and thank you for posting your question to the Forum.
Quite recently, the same question Return a Table With a SWITCH was added to Microsoft Power BI Community, and answered by Greg Deckler who offered an alternative solution.
Adding my $0.02 (though @AntrikshSharma and Greg Deckler are correct):
Both IF and SWITCH are Logical Functions. You would then need to pass the result to a Table Manipulation function to return a table or manipulate existing tables. Examples of this can be found on the Microsoft Power BI Community Forum with this pattern.