March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I imagine this is quite easy fro someone in the know..... WOuld be very staright forward in excel
I have a measure as below
service margin = [service element] - (sum(RevenueCostAnalysisViaInvJobsTable[PartsCost])+sum(RevenueCostAnalysisViaInvJobsTable[TimeCost]))
but I want to add an IF statement to this along the lines of IF [serivce element] is blank or zero then this measure should also return zero.
At the moment it returns a large negative number if [service elemet] is blank or zero because it is minusing the remaininder of the measure which is incorrect.
Any help appreciated
Solved! Go to Solution.
Hi astarkey,
Modify your measure like this pattern:
service margin = IF ( [service element] = 0 || [service element] = BLANK (), 0, [service element] - ( SUM ( RevenueCostAnalysisViaInvJobsTable[PartsCost] ) + SUM ( RevenueCostAnalysisViaInvJobsTable[TimeCost] ) ) )
Hope it's helpful to you.
Jimmy Tao
Hi astarkey,
Modify your measure like this pattern:
service margin = IF ( [service element] = 0 || [service element] = BLANK (), 0, [service element] - ( SUM ( RevenueCostAnalysisViaInvJobsTable[PartsCost] ) + SUM ( RevenueCostAnalysisViaInvJobsTable[TimeCost] ) ) )
Hope it's helpful to you.
Jimmy Tao
User | Count |
---|---|
117 | |
77 | |
58 | |
52 | |
46 |
User | Count |
---|---|
171 | |
117 | |
63 | |
57 | |
51 |