Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have one table with actual and historical data for our employees. Each employee has one row for each month they work in our company. The two columns I like to use in my data table are the date (which is formatted as a data type with dd MMMM yyyy) and the FTE (formatted as a decimal number).
My desired output is a matrix visualization with the total FTE sum for the newest month (in this case 30 September 2019) and then the comparison (in absolutes and percentages) versus the previous month (in this case , versus the last month of the previous year (in this case 31 December 2018) and versus the same month last year (in this case 30 September 2018).
When I update the data set, the values for the newest month will change to 31 October 2019, for previous month will change to 30 September 2019 and for the same month last year will change to 31 October 2018.
I have been breaking my head around this for some days, but I guess I'm still too much in Excel mode in my thinking. Any help would therefore be much appreciated 🙂
Solved! Go to Solution.
Hi @Nipius - Please try the following:
Previous Month Value =
CALCULATE(
SUM(YourTable[YourColumn]),
PREVIOUSMONTH('Date'[Date])
)
Previous Year Value =
CALCULATE(
SUM(YourTable[YourColumn]),
SAMEPERIODLASTYEAR('Date'[Date])
)
Hi @Nipius - Please try the following:
Previous Month Value =
CALCULATE(
SUM(YourTable[YourColumn]),
PREVIOUSMONTH('Date'[Date])
)
Previous Year Value =
CALCULATE(
SUM(YourTable[YourColumn]),
SAMEPERIODLASTYEAR('Date'[Date])
)
Thanks a ton, @Anonymous ! Could it be that you forgot to attached the sample script? 🙂
Thanks so much, @Anonymous! Really helpful 🙂
And apologies for the delayed response. I had to go offline for some time, hence this radio silence. Again, really appreciate your support!
Hi @Nipius ,
here are some tips for getting quick replies in the forum:
How to Get Your Question Answered Quickly
Cheers,
Sturla
User | Count |
---|---|
117 | |
75 | |
61 | |
50 | |
44 |
User | Count |
---|---|
174 | |
125 | |
60 | |
60 | |
57 |