Forum Discussion
jddaa
7 years agoNew 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?
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?
Thank you all !
- Anonymous7 years ago
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
3 Replies
- AnonymousNot applicable
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
- jddaaNew Member
Thank you very mucho, solved!
- Ashish_MathurSuper 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.