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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
cdoblare28
Frequent Visitor

Differentials Calculation

Hello,

 

I am currently finding trouble with the calculation of Differentials (Value of Today - Previous Value). Find here a screenshot of the table used:

 

cdoblare28_0-1674478404616.png

 

 

I have several Indexes and the calculation is based on Date. The problem is that depending on the index there are prices published on weekends, and some others don´t, so what I want to calculate is if there are days (for example weekends) that there are no price published, to return the difference against the latest value published, for example, price of Monday vs Price of Friday. I want to return the absolute value and the percentage.

 

Many thanks!

 

 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@cdoblare28 , Based on what I got.

 

Create a date table.

 

Then join it with date of your table and then create a measures like

 

M1 = countrows(Table)

 

m2= Countx( Date, if(isblank([M1]), [Date], blank() ) 

 

use M2 with date from date table

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak appreciate your response, but I think that does not solve the problem. The output of that table is a lines chart, so if I generate artificially dates, that chart is not going to be good because it will consider dates without quotations flat respect the latest value. I think that what I need is just a measure.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.