- 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

Subtraction two vales
Hi
I would like to show a measure based on end of the month’s value from one table minus today's value in another
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Circuscazz ,
Here is my sample data (Today is 2024.7.24):
Use this DAX to create a measure:
Difference =
VAR _PreviousMonthEndDay = EOMONTH(TODAY(), -1)
VAR _PreviousMonthValue =
CALCULATE(
SUM('Table (2)'[Value]),
'Table (2)'[Date] = _PreviousMonthEndDay
)
VAR _TodayValue =
CALCULATE(
SUM('Table'[Value]),
'Table'[Date] = TODAY()
)
RETURN
_PreviousMonthValue - _TodayValue
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Circuscazz ,
Here is my sample data (Today is 2024.7.24):
Use this DAX to create a measure:
Difference =
VAR _PreviousMonthEndDay = EOMONTH(TODAY(), -1)
VAR _PreviousMonthValue =
CALCULATE(
SUM('Table (2)'[Value]),
'Table (2)'[Date] = _PreviousMonthEndDay
)
VAR _TodayValue =
CALCULATE(
SUM('Table'[Value]),
'Table'[Date] = TODAY()
)
RETURN
_PreviousMonthValue - _TodayValue
And the final output is as below:
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Circuscazz
Do you want a MEASURE? Measures are written in DAX, this is the Power Query forum and PQ uses the M language, not DAX. PQ does not create measures.
Please provide some sample data (in a file, not an image) and an example of the desired result.
Regards
Phil
Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.
Blog :: YouTube Channel :: Connect on Linkedin
Proud to be a Super User!

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-03-2024 01:00 AM | |||
10-14-2024 10:08 AM | |||
01-31-2025 10:27 PM | |||
10-07-2024 06:30 AM | |||
03-18-2025 02:47 AM |