Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
Realised that my problem description was bad so here is an update:
I want to use the quick formula month to month difference formula. Then I get this error in the formula:
Then I get this error:
Result date | Project | MSEK |
den 15 Juni 2016 | A | 5 |
den 15 Januari 2016 | A | 6 |
den 15 Febryary 2016 | A | 4 |
den 15 Mars 2016 | A | 5 |
Hi @Mstrande ,
You could create a rank column based on your date column at first. Then refer to the following measure to get the result.
Column 2 =
VAR a =
CALCULATE (
FIRSTNONBLANK ( 'Table'[MSEK], 1 ),
FILTER (
'Table',
'Table'[rank]
= EARLIER ( 'Table'[rank] ) - 1
&& 'Table'[Project] = EARLIER ( 'Table'[Project] )
)
)
RETURN
'Table'[MSEK] - a
Here is my test file for your reference.
Hi @v-eachen-msft @amitchandak !
the quick formula only supports unique date values and I have several MSEK rows on the same date.
Date Project costtype MSEK
20200515 Chair Manhour 5
20200515 Chair Testobject 10
20200415 Chair Manhour 5
20200515 Chair Testobject 10
MSTRANDE
@Mstrande , Not sure I am clear with your issue. But make sure you have created a date table and join it with your date in your transaction table
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...
Appreciate your Kudos.
@Mstrande , the column in your table, is that detected as date, if no, make sure it does. Then create a date table. And use that for time intelligence.
Create the date table using the calendar function
@amitchandakthanks for reply; The column is marked as a date. With format "den d MMMM YYYY" Please look a solution above, how does that work?
@Mstrande , Can you share sample data(with more rows) and sample output in table format? Or a sample pbix after removing sensitive data.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |