Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Daniel_Fdrvc
Helper I
Helper I

When adding column with switch, he multiplies rows

Hi all,

need some guidance… I have created a table with two columns: one is Branch ID and second is a measure Total_points = SUM(taskai[Final_points]) which sum all points in all branches. Now i need to add another column which shows me value based on measure Total_points. I think SWITCH function should solve my problem. So I have created new column with Bonus = SWITCH(TRUE(),[Total_points]>1,100,50), but when I add this column to visualization he expand my table and shows multiple rows of same branch, but with different Total_points. What Imdoing wrong? Final result should be: one branch id, one total point row and one bonus row for summed total points.

 

3FF7E840-D437-4654-A70C-1E4754E09276.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Daniel_Fdrvc , I doubt you created a new column. Create as new measure

Bonus = SWITCH(TRUE(),[Total_points]>1,100,50)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
v-cazheng-msft
Community Support
Community Support

Hi, @Daniel_Fdrvc 

Is “SV ID” in the first picture equal to “Branch ID”? Can you provide a sample removing sensitive data or describe the situation of the tables in your model in more detail?

 

Best Regards,

Caiyun Zheng

 

amitchandak
Super User
Super User

@Daniel_Fdrvc , I doubt you created a new column. Create as new measure

Bonus = SWITCH(TRUE(),[Total_points]>1,100,50)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors