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.
I need a procentage measure which a specific row is the bases.
Namefield | Amount | % Measure |
Over | 150000 | 591% |
Target | 25366 | 100% |
Actual 1 | 15000 | 59% |
Actual 2 | 16555 | 65% |
Actual 3 | 22555 | 89% |
Target should allways be 100%. Numbers can change! The column % Measure is the result.
Solved! Go to Solution.
Hi,
Thank you for your message.
Please try something like below.
Target measure: =
VAR _target =
CALCULATE (
SUM ( Data[Amount] ),
FILTER ( ALL ( Data[Namefield], Data[Amount] ), Data[Namefield] = "Target" )
)
RETURN
_target
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
Please check the below picture and the attached pbix file.
It is for creating a calculated measure.
Percent measure: =
VAR _target =
CALCULATE (
SUM ( Data[Amount] ),
FILTER ( ALL ( Data[Namefield], Data[Amount] ), Data[Namefield] = "Target" )
)
RETURN
IF ( HASONEVALUE ( Data[Namefield] ), DIVIDE ( SUM ( Data[Amount] ), _target ) )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thx for response. How do I create another coulmn that shows the target Amount in each row like this:
Namefield | Amount | % Measure | Target |
Over | 150000 | 591% | 25366 |
Target | 25366 | 100% | 25366 |
Actual 1 | 15000 | 59% | 25366 |
Actual 2 | 16555 | 65% | 25366 |
Actual 3 | 22555 | 89% | 25366 |
Hi,
Thank you for your message.
Please try something like below.
Target measure: =
VAR _target =
CALCULATE (
SUM ( Data[Amount] ),
FILTER ( ALL ( Data[Namefield], Data[Amount] ), Data[Namefield] = "Target" )
)
RETURN
_target
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |