Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jksl_12
New Member

Change since last last report date

Hey there

I have run into a problem with the automated report that I am setting up and I am hoping that someone will be able to point me in the right direction. It is the last thing I am missing, and I would really enjoy if it was possible to include it.

Below I have an example of my data that is put into the table.

 

RegionDate of reportCategoryStorage amount
NorthDecember 1stPencils4.500
SouthDecember 1stPencils6.000
WestDecember 1stPencils7.500
CentralDecember 1stPencils10.500
NorthNovember 1stPencils5.000
SouthNovember 1st Pencils5.000
WestNovember 1stPencils8.000
CentralNovember 1stPencils12.000

 

I would love to be able to set up a formular so that I can see the difference from last month. However the thing that I would enjoy even more is for this to happen automatically when I refresh my data. On January 1st I am going to be getting new data put into the same tabel, so then I would want it to be compared to the December data instead and see the difference there between the values.

So basically what I would want is for it to look like this and then be able to update it without having to do that manually. 

RegionStorage amountChange since last
North4.500-500
South6.0001.000
West7.500-500
Central10.500-1.500

I hope someone will be able to help me out, and if there is anything else you need in order to be able to solve my problem, then do let me know!

 

Thanks in advance and kind regards

- J

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@jksl_12 

pls make sure the date of report column is in date type

then you can create two measures

Measure = 
VAR _date=max('Table'[Date of report])
return CALCULATE(sum('Table'[Storage amount]),ALLEXCEPT('Table','Table'[Region]),'Table'[Date of report]=_date)

Measure 2 = 
VAR _date=EDATE(max('Table'[Date of report]),-1)
return [Measure]-CALCULATE(sum('Table'[Storage amount]),ALLEXCEPT('Table','Table'[Region]),'Table'[Date of report]=_date)

11.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
ryan_mayu
Super User
Super User

@jksl_12 

pls make sure the date of report column is in date type

then you can create two measures

Measure = 
VAR _date=max('Table'[Date of report])
return CALCULATE(sum('Table'[Storage amount]),ALLEXCEPT('Table','Table'[Region]),'Table'[Date of report]=_date)

Measure 2 = 
VAR _date=EDATE(max('Table'[Date of report]),-1)
return [Measure]-CALCULATE(sum('Table'[Storage amount]),ALLEXCEPT('Table','Table'[Region]),'Table'[Date of report]=_date)

11.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.