- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DAX Formula for subtracting columns?
I am trying to caluculate current year revenue(column C) by subtracting prior revenue (column B) from revenue to date (column A). In theory, the formula would be A - B = C. Would I use some form of SUM formula to subtract these? I'm new to Power BI and need help, please! I've worked on this several hours, with little success. All suggestions are welcome!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try with:
C=Calculate (Sum(Table[A]))-Calculate (Sum(Table[B]))
Lima - Peru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi alhyde,
What is your current situation?
The formula provided by Vvelarde should have the same results with the formula below:
C = A - B
Adding a blog for reference:
Understanding Context Transition
If that formula didn't meet your requirements, then please post back.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What if one of these tables is a measure?
Can you do C = A - B if B is [B]?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-06-2017 08:31 AM | |||
08-22-2024 06:28 AM | |||
08-01-2024 02:13 AM | |||
04-08-2024 01:06 AM | |||
07-30-2024 07:42 AM |
User | Count |
---|---|
123 | |
105 | |
84 | |
49 | |
46 |