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.
Hello,
I need help with formula because I can't figure out why that simple formula doesn't works.
Example:
I have this table.
I used this formula:
Solved! Go to Solution.
Hello @EdgarasR1
You can create a measure like so to get your result.
Measure =
VAR _Fact = SUM ( 'Planas vs Faktas'[Fact] )
VAR _Plan = SUM ( 'Planas vs Faktas'[Plan] )
RETURN IF ( _Fact > _Plan, 0, _Plan - _Fact )
You should create measures for each of the amount though then use those measures.
Fact Amount = SUM ( 'Planas vs Faktas'[Fact] )
Plan Amount = SUM ( 'Planas vs Faktas'[Plan] )
Plan-Fact = [Plan Amount] - [Fact Amount]
Then the final measure would be just this:
Measure = IF ( [Fact Amount] > [Plan Amount], 0, [Plan-Fact] )
Hello @EdgarasR1
You can create a measure like so to get your result.
Measure =
VAR _Fact = SUM ( 'Planas vs Faktas'[Fact] )
VAR _Plan = SUM ( 'Planas vs Faktas'[Plan] )
RETURN IF ( _Fact > _Plan, 0, _Plan - _Fact )
You should create measures for each of the amount though then use those measures.
Fact Amount = SUM ( 'Planas vs Faktas'[Fact] )
Plan Amount = SUM ( 'Planas vs Faktas'[Plan] )
Plan-Fact = [Plan Amount] - [Fact Amount]
Then the final measure would be just this:
Measure = IF ( [Fact Amount] > [Plan Amount], 0, [Plan-Fact] )
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 |