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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abukapsoun
Post Patron
Post Patron

Displaying difference based on date

Hi, 

 

Need your help please 

How can I create a measure showing the difference of (Average value of this day) - (Average value of last day)?

 

Regards,

Mohamed 

1 ACCEPTED SOLUTION
MahyarTF
Memorable Member
Memorable Member

Hi

Use the below Measure :

ChengeVal =
Var __CurrDateValue = CALCULATE(AVERAGE(TableName[Value]), ALLEXCEPT(TableName,TableName[Date]))
Var __LastDayValue  = CALCULATE(AVERAGE(TableName[Value]), PREVIOUSDAY(TableName[Date]))
return __CurrDateValue - __LastDayValue
MahyarTF_0-1668502302741.png

Appreciate your Kudos and Please mark it as a solution if it helps you

Mahyartf

View solution in original post

1 REPLY 1
MahyarTF
Memorable Member
Memorable Member

Hi

Use the below Measure :

ChengeVal =
Var __CurrDateValue = CALCULATE(AVERAGE(TableName[Value]), ALLEXCEPT(TableName,TableName[Date]))
Var __LastDayValue  = CALCULATE(AVERAGE(TableName[Value]), PREVIOUSDAY(TableName[Date]))
return __CurrDateValue - __LastDayValue
MahyarTF_0-1668502302741.png

Appreciate your Kudos and Please mark it as a solution if it helps you

Mahyartf

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.