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
jddaa
New Member

Divide filtered value between not filtered value

Hi all!
 
I'm trying to divide two values:
Value A= Calculated value, non filtered. Independent from slicer value.
Value B= Calculated value, same as value A but depending on slicer value.
 
I'd like to show as value C the next operation:
Value B/Value A , but I don't know how to figure out this problem. Someone can help me with this problem?
 
img
 
Thank you all !
1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @jddaa,

 

You can try to use following measure if it suitable for your requirement:

valueA =
CALCULATE ( SUM ( Table[Amount] ), ALL ( Table ) )

valueB =
CALCULATE ( SUM ( Table[Amount] ), ALLSELECTED ( Table ) )

valueC =
DIVIDE ( valueA, valueB, -1 )

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @jddaa,

 

You can try to use following measure if it suitable for your requirement:

valueA =
CALCULATE ( SUM ( Table[Amount] ), ALL ( Table ) )

valueB =
CALCULATE ( SUM ( Table[Amount] ), ALLSELECTED ( Table ) )

valueC =
DIVIDE ( valueA, valueB, -1 )

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thank you very mucho, solved!

Ashish_Mathur
Super User
Super User

Hi,

 

You will have to use the CALCULATE() with the ALL() or ALLEXCEPT().  To get more specific help, share some data and show the expected result.  Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.