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
Anonymous
Not applicable

Divide filter

Hi,
 
I have a calculation of dividing a measure by a measure:
 
Total Breached % =
DIVIDE([Total Breached],[Count of Incidents]) + 0
 
I want to exclude a certain value that is attached to certain rows of data. What would the dax formula be for the divide but filter on the value?
 
Thanks
 
Liam
1 ACCEPTED SOLUTION
Anonymous
Not applicable

You have not closed bracket of calculate.

 

Try this

 

Divide% = Divide(
Calculate([Total Breached],filter(table,table[Key]<>"471")),[Count of Incidents])
 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

check my blog here
https://community.powerbi.com/t5/Community-Blog/Connecting-to-a-Tabular-Model-Using-Power-BI/ba-p/91...

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Divide(
Calculate([measure],filter(table,table[col]="value"),[measure2])

Thanks
Pravin

If it resolves your problem mark it as a solution and give Kudos.
Anonymous
Not applicable

Hi @Anonymous ,

 

Thanks for your reply.

 

I currently have:

 

Divide% = Divide(
Calculate([Total Breached],filter(table,table[Key]<>"471"),[Count of Incidents]).
 
This says too few arguments were passed to the divide function. The minimum is 2?
 
Thanks in advance
 
Liam
Anonymous
Not applicable

You have not closed bracket of calculate.

 

Try this

 

Divide% = Divide(
Calculate([Total Breached],filter(table,table[Key]<>"471")),[Count of Incidents])
 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

check my blog here
https://community.powerbi.com/t5/Community-Blog/Connecting-to-a-Tabular-Model-Using-Power-BI/ba-p/91...

Anonymous
Not applicable

Hi @Anonymous ,

 

Thankyou, it now accepts this.

 

I have both calculations next to each other in my matrix but the first divide displays all of the % as expected, but the new formula to filter out one of the rows, or display it as 0, displays blank on the whole column. Ive attached an image. 

 

DAX.png

 

 

Would you have any idea why it displays like this?

 

Thanks again for your help with this

 

Liam

 

 

Anonymous
Not applicable

debug your measure.

 

First check which measure is showing blank in divide and why.

Check is there any value other than 471 also check data type of column. you add 471 in (""). Hence it is taking it as string. 471 only for int.

 

Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar

If I resolve your problem Mark it as a solution and give kudos.

check my blog here
https://community.powerbi.com/t5/Community-Blog/Connecting-to-a-Tabular-Model-Using-Power-BI/ba-p/91...

Anonymous
Not applicable

Thanks for your help with this @Anonymous . After playing around with the formatting its managed to show up as expected.

 

Thanks

 

Liam

Helpful resources

Announcements
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!

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.