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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JennyJun9999
New Member

Division of a Filtered Field

I want to be able to divide Field A(filtered by Date) by Field A(filtered by Code).

Field A filtered by date gives me 319 records, Field A futher filtered by Code, gives me 282 records of the original 319. 

 

I need to work out the percentage e.g. 282/319 = 88%

 

How do I do this? I have tried measure, quick measure and column and are receiving a result of 1 or 100% - it is assuming the Field result is the same even though I have created two separate measures for the difference in filtering. 

 

Help please.  

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @JennyJun9999 

You just need to use "all" function to create two measure, then use divide function to get your expected output.

Of course, it depends on the row context of the current visual.

If you still have the problem, please share some sample data and your expected output.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @JennyJun9999 

You just need to use "all" function to create two measure, then use divide function to get your expected output.

Of course, it depends on the row context of the current visual.

If you still have the problem, please share some sample data and your expected output.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.