Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everyone I need somebody´s help.
I want to have a measure that always sum the last month from today month costs and use those values in another measure. But the important thing is that it has to be always the last month sum of costs without using filters or slicers. This is because i want to use them in another measure "inventory value/(always last month costs/365)".
Thank you very much
Solved! Go to Solution.
You may take a look at the links below.
you might check out the PREVIOUSMONTH() function
Returns a table that contains a column of all dates from the previous month, based on the first date in the dates column, in the current context.
PREVIOUSMONTH(<dates>)
Term | Definition |
Dates | A column containing dates. |
A table containing a single column of date values.
This function returns all dates from the previous month, using the first date in the column used as input. For example, if the first date in the dates argument refers to June 10, 2009, this function returns all dates for the month of May, 2009.
The dates argument can be any of the following:
A reference to a date/time column.
A table expression that returns a single column of date/time values.
A Boolean expression that defines a single-column table of date/time values.
and use it to get the dates to sum up in a measure...which you could then refer to in another measure
Help when you know. Ask when you don't!
What im looking for is a measure that always always take the las month costs. For example, if today is September, then i want that my measure always take the sum of costs from august. This is because in the other measure i need only the last month costos.
You may take a look at the links below.
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
28 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
46 |