Forum Discussion
Divide filter
- 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
Calculate([measure],filter(table,table[col]="value"),[measure2])
Thanks
Pravin
If it resolves your problem mark it as a solution and give Kudos.
Hi Anonymous ,
Thanks for your reply.
I currently have:
- Anonymous6 years agoNot 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- Anonymous6 years agoNot 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.
Would you have any idea why it displays like this?
Thanks again for your help with this
Liam
- Anonymous6 years agoNot 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/913784