Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have a set of data that I am going to want to filter by (ultimately going to put this calculation into an if statement to determine if it's overbudget and want to be able to slice by the red/yellow/green output).
The data looks like this, and I have created a formula (overbudget) that right now just sums everything by the project ID, however I want use it to say the following for each project ID:
If (Sum of Expenditure (type = target) >= sum of Expenditure (type = trend), "On Plan", "Overbudget")
I seem to have no issues doing this as measures - but get stuck trying to do it as a new column.
Looking to create the Overbudget column just not as a measure.
Current measure formulas:
You can create a measure as follows:
Measure =
var _totalbudget=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Project ID]=MAX('Table'[Project ID])&&'Table'[Expenditure Type]="Target"))
var _totaltrendspend=CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[Project ID]=MAX('Table'[Project ID])&&'Table'[Expenditure Type]="Trend"))
Return
IF(_totalbudget>=_totaltrendspend,"On Plan", "Overbudget")
And you'll see:
For the related .pbix file, see attachment pls.
Saludos
Kelly
Have I answered your question? Mark my position as a solution!
@enswitzer So given the data above, what would this new column be for each row?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
119 | |
78 | |
58 | |
52 | |
48 |
User | Count |
---|---|
170 | |
117 | |
63 | |
58 | |
51 |