Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi Community member,
Need help to get some desired result.
Below is the my dataset.
and I already create a measure to calcualte the values for previous months for column automated. below is the measure:
and my table look like below and that is absoluty fine:
But i want to show previous month data based on MonthName column [column name shown on first screenshot] and when i use monthname column on table then previous month data is showing 0. see below pic.
Please suggest. how can i use monthname column to calculate previous months data based on projectname?
hi @AmitSaini ,
try like:
...
VAR pvevious=
CALCULATE(
SUM(Status[Automated],
EOMONTH(Status[datevalue], 0) = EOMONTH(MAX(Status[datevalue]), -1)
)
...
Create a date table and mark it as a date table. There's lots of articles and videos on how to do that. Link your date table to the date column in your fact table, and then use columns from your date table in the visuals. Your measure using PREVIOUSMONTH will then work if you change the date column to the date column from the date table.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
26 | |
20 | |
19 | |
14 | |
13 |
User | Count |
---|---|
43 | |
36 | |
24 | |
23 | |
21 |