The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
i'm trying to figure out how to subtract the two values in the column "count" from each other.
This is a filtered table so I cant pivot it etc.
hoping there is some code that will put each value in a variable and then I can subtract them after.
any advise would be greatly appreciated.
Solved! Go to Solution.
You can write a measure to calculate each amount then subtract the measures.
Total Count = CALCULATE ( SUM ( 'YourTable'[Count] ), 'YourTable'[Metric] = "Grand Total" )
Manual Count = CALCULATE ( SUM ( 'YourTable'[Count] ), 'YourTable'[Metric] = "Manual" )
Difference = [Total Count] - [Manual Count]
Thank you so much for your help - this was slowly draining the life from me 🙂
You can write a measure to calculate each amount then subtract the measures.
Total Count = CALCULATE ( SUM ( 'YourTable'[Count] ), 'YourTable'[Metric] = "Grand Total" )
Manual Count = CALCULATE ( SUM ( 'YourTable'[Count] ), 'YourTable'[Metric] = "Manual" )
Difference = [Total Count] - [Manual Count]