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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ilovepowerbi123
Regular Visitor

Different formula in one column.

Hello 

 

I have a question about how do I put two different formula in one column? And also there are some cells have to be empty in same column in a Table or Matrix visualization. Example please see below.

Not sure what statement should be use. If anybody can help about this question will be appreciated!

 

                                                            Number                 %Net

                     T/O Gross Total                    1                          (Has to be empty)

                     Sales Deductions                  3                        =Sales Deductions/T/O gross total     

                         Turnover net total             4                        (Has to be empty)

                     Var. Costs                              5                         = Var.Costs/Turnover net total

                     Other Cost                            6                       = Other cost/ Turnover net total

3 REPLIES 3
VahidDM
Super User
Super User

Hi @ilovepowerbi123 

 

You can use SWITCH function.

Measure =
SWITCH([Number],
1,blank(),
3,Sales Deductions/T/O gross total,
4,blank(),
5,Var.Costs/Turnover net total,
6,Other cost/ Turnover net total
)

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

Hello 

 

Thank you very much!  I tried but I think my data prob is that I have Jan-Sep data, and the number will change depending on what month I choose. So the "Number" column is already  a measurment. I am not sure what value should I put in this SWITCH function when my Number going to change by filtering month? 

 

Thank you so much!

@ilovepowerbi123 

 

Can you share a sample of your data or PBIX file? (after removing sensitive data)

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors