Forum Discussion
Anonymous
6 years agoNot 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
- Anonymous6 years ago
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/913784
6 Replies
- AnonymousNot applicableDivide(
Calculate([measure],filter(table,table[col]="value"),[measure2])
Thanks
Pravin
If it resolves your problem mark it as a solution and give Kudos.- AnonymousNot 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 advanceLiam- AnonymousNot 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/913784