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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
scorpi73
Frequent Visitor

Measure does not recognize Value of previous Day when combined with custom Rows in Matrix

Hallo everyone,


i am creating a report with a Measure that should take the Value of the previuos Day:

Previous Day = CALCULATE([Measure], DATEADD('Datum'[Date],-1,day))
Measure = CALCULATE(SUM('Table'[Value]),'Table'[Filter1]="xxxxxx",'Table'[Filter2]="yyyyyyy")

the second Measure is the actual Value for today.



in my Matrix Visual, everything is working fine:

scorpi73_1-1650380956412.png

 


but when i add a Date hierachie to it, it does not caculate the first day of the Month correctly. the measure doesnt pull the previous day of the last month:

scorpi73_0-1650380870571.png

 


Thank you!

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

When you added the Year / Month column to the matrix that also applied a filter which is stopping any days from other months from being included. Change your measure to

Previous Day = CALCULATE([Measure], DATEADD('Datum'[Date],-1,day), REMOVEFILTERS('Datum'[Year Month))

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

When you added the Year / Month column to the matrix that also applied a filter which is stopping any days from other months from being included. Change your measure to

Previous Day = CALCULATE([Measure], DATEADD('Datum'[Date],-1,day), REMOVEFILTERS('Datum'[Year Month))

worked like a charm!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors